fix py3 test failure