First working instance of the script, renamed for python love