In this article I show how I wrote a parser to parse TXRX files into a more manageable object in Python.
You didn't ask, but let me tell you I learned a lot of maths over at KhanAcademy.