Fix CursorIterator.next() for Python 3

It was calling next, but returning None
Merge pull request #511 from yprez/fix-iterators

Fix CursorIterator.next() for Python 3