Fixed the issues with new_python_file