make tests pass on python3