fix running_python_scripts bug affecting modules detection