Use next(iter) instead of tier.next() for Python 3