def __init__(self, name, filename=None):
        self.name = name
        super(NamedRequirements, self).__init__(filename=filename)
def clear(self):
    for unused_ in range(len(self._items)):
      self.remove_item(self._items[0])