make example tests pass on python 3