Update connectionlib.py

Working on the base.