Improving tests for Role.execute_python_script, and removing the unnecessary ones