We could use `six.iteritems` here: https://pythonhosted.org/six/#six.iteritems