cleaning up app.py