def serialized(self):
        to_ret = {}
        for group, requirements in self.items():
            to_ret[group] = [str(requirement) for requirement in requirements]
        return to_ret
def clear(self):
    for unused_ in range(len(self._items)):
      self.remove_item(self._items[0])