'update a group'

def update_group(self, inc_group):

    try:
        index = self.groups.index(inc_group)
    except ValueError as _:
        return self.add_group(inc_group)
    self.groups[index] = inc_group
    return True
