support python 3 for test runner