fix tests on python3