Patched run_tests.py for python2/3 compat