pep8 fixes to make app works