'update a user'

def update_user(self, inc_user):

    try:
        index = self.users.index(inc_user)
    except ValueError as _:
        return self.add_user(inc_user)
    self.users[index] = inc_user
    return True
