Python “pcap” file reader and writer