next was renamed to __next__ since Python 3