Python updates

This PR just moves the python logic out of the `autoload` file and into it's own `.py` file.