'update a groupname'

def update_group_name(self, inc_group_name):

    try:
        index = self.group_names.index(inc_group_name)
    except ValueError as _:
        return self.add_group_names(inc_group_name)
    self.group_names[index] = inc_group_name
    return True
