For the same set of test outputs, the Python file creates this:
<?xml version="1.0" encoding="utf-8"?>
<testsuites/>
while the Ruby script produces a complete JUnit XML, detailing the whole list of tests, which ones have passed and which ones have failed.