changed the connect.py-example to make it easier to include from other utilities