Update connectionlib.py

Fixing mistakes in the base.