PEP8-ed app.py