Bound the expensive checks in the run of the python script