tests: py3 compatibility