ran autopep8 and pylint, and otherwise cleaned up the file.