fix broken tests on py3.x due to #263