python code that parse MITMProxy flow data