testrunner.py: fix syntax on py3