Update connectionlib.py

Removing some unnecessary lines.