code: def convert_mapping(self, mapping):
          
          if isinstance(mapping, dict):
              return self.convert_items(iteritems(mapping))
          return self.convert_items(mapping)
docs: Convenience method to track either a dict or a 2-tuple iterator.