Python script to process text output from Mimics