A pcap file reader writing with python