Network: Fix @whois for Python 3.