def _group(_groups, or_=False):
    for group in _groups:
        if isinstance(group, tuple):
            (variable, op, value) = group
            group_name = str(variable)
            if (group_name not in requirements):
                requirements[group_name] = [[]]
            elif or_:
                requirements[group_name].append([])
            or_ = False
            requirements[group_name][(- 1)].append((str(op), str(value)))
        else:
            _group(group, or_=True)
def _group(_groups, or_=False):
    for group in _groups:
        if isinstance(group, tuple):
            (variable, op, value) = group
            group_name = str(variable)
            if (group_name not in requirements):
                requirements[group_name] = [[]]
            elif or_:
                requirements[group_name].append([])
            or_ = False
            requirements[group_name][(- 1)].append((str(op), str(value)))
        else:
            _group(group, or_=True)