fix Py3 test compatibility