update app.py for aws