Fix bug in unused socks5.py function.

Found by Yawning Angel.