Fix app.py

The latest updates to compass.py broke app.py. Fixing it.