Fixed cursor iterators in Python 3