Crucial updated to run_py_script so it plays nicely with Cython tool.