Use next(iterator) instead of py3k incompatible iterator.next() (related to #264017) [applied]