pep8-ify some code