python how to read trp files