Packet Sniffer in C and Python