test: make autotest runner python 2/3 compliant