I am trying to implement a code in python 2.7 (Ubuntu 16.04) that reads a pcap file with http network flows and parses them. The code files have been given below: