cleaned up app.py