Use the next() function instead of .next() for python3
Merged in cwilkes/alembic (pull request #8)

Use the next() function instead of .next() for python3