fix python 3 tests