def clear(self):
        super(GroupedRequirements, self).clear()
        self.create_default_groups()
def __init__(self, optional=False, choices=None):
        self._required = not optional
        self._choices = choices