make the connection's collector reference a weakref in python, and make collectors 'weak' in C