fixed missing os import in app.py