Do you have control over the eggs.so module? Seems to me the best answer is to make the start method return a connection object conn1 = eggs.start('Connection1') conn2 = eggs.start('Connection2')