Update connectionlib.py

Changing a couple of things.