Update connectionlib.py

Fixing the mistake in the base.