docs: def iteritems_sorted(dict_):
      """ change to iteritems ordered """
      if isinstance(dict_, OrderedDict):
          return six.iteritems(dict_)
      else:
          return iter(sorted(six.iteritems(dict_)))