Update connectionlib.py

Fixing the mistakes in the base.