make tests pass for python3