Ported connect to Python 3