make tests pass on py3 too