Python 3 scraps the iter(...).next() method, so use next(iter(...)).