pep8 fix and clean controller/*.py