Correct some Python 3 issues in the tests
Correct some Python 3 issues in the tests

The tests used "gen.next()" to advance to the next item in the
generator.  This syntax is not supported in Python 3, so we now
use the next() builtin for this operation.

rackerlabs/timid,rackerlabs/timid