Generate a state diagram from a packet capture that can be later modified using a set of python functions.