Fix formatting of app.py

Fix style issues from the previous pull request.