Update connectionmanager.py