code cleanup in connectionsx.pyx