connection.py: further debugging localhost connect