python 3 compatible
SocketConnection