fixed syntax error in pmanager.py