R9 hangs after pythonscript

i have a small pythonscript , to cut parts , works great very handy , but after this script R9 hangs .. it comes alive again after 1 minute or longer , it is a simple script making a cut with boolean difference , a normal boolean difference works ok no lag , any ideas ? , btw it is on both my computers same problem
the script makes some cutting bloks a bit larger as the cutting part and creates a temp layer and blocks , and removes them after

Hi Rob -
Please post or upload that .py file.
-wim

uploaded as a txt we have it under a button , just start with the circle cutting with the strip, when using normal boolean it cuts but not at the top the idea is to have a clean cut in the circle also in the edge , , start choose part to cut choose the smal part of the strip to extrude , expand choose the top edge of the strip , no deleting , picj the blue surface as a cutter it takes a bit this one was quick a short delay but some really are slow

cut example.3dm (61.3 KB)