app.py stuff commited miranda take a look at it