fixed python2/3 tests