fixing failing tests in python > 3.0