De-lint and PEP-8 the python, made it a seperate py file