def update_relationship(self, other, relationship_type): if other in self.current_relationships.keys(): relationship = self.current_relationships[other] # Don't have a relationship with this person # Creating a new relationship with this person else: relationship = Relationship(self, other) self.current_relationships[other] = relationship relationship.update_relationship(relationship_type, 1)