'update a subject'

def update_subject(self, inc_subject):

    try:
        index = self.subjects.index(inc_subject)
    except ValueError as _:
        return self.add_subject(inc_subject)
    self.subjects[index] = inc_subject
    return True
