s4/torture/drs/python: make test code run in py2/py3