Fixed app.py according to pylint, pyflakes and pep8