a portsniffer in Python