a simple packet sniffer in python