Update app.py

Mac improvments