TST: fixed py3 errors