Python - Convert running results from txt format to JUnit