Add python2 TestCase work-around