Remove dict.iteritems() calls for Python 3