Update appmanager.py