Small SOCKS protocol server implementation in Python