Separated isolated code into separate methods in connection_interfaces.py
Renamed some old imports