clean app.py