def yaml(self):
        return yaml.dump(self.serialized, default_flow_style=False,
                         encoding=None)
def clear(self):
    for unused_ in range(len(self._items)):
      self.remove_item(self._items[0])