Cleanups to the SOCKS5 code

 * Fixed  redundant import
 * Added some more comments
 * Deal with the possibility that socket.inet_ntop may be missing