iterator.next() was renamed to iterator.__next()__, but there is a generic function next() (common to v2.7 and 3) which calls the correct one.