fixing failing tests on python3