Consistent trace files and parsing in python