Update connectionlib.py

Still writing the base.