Under the analyze tab in the Positions and Simulated Trades pane there's a menu button to the right. The Import Trades menu item does it.
Just keep in mind you can't directly import trades from IB into TOS. The import is for TOS-formatted exported trades.
I just exported and imported to see the text file and how it worked. I have some decent experience using Thinkscript and I'm learning python now.. will I be able to create the python script you used to convert the text file? is it super difficult?