Update app.py

Updating NetworkManager.