Python 3 uses '__next__' instead of 'next'

Python 2.x support dropped