def __eq__(self, other):
    return (((self.id is None) or (other.id is None) or (self.id == other.id)) and (self.firstname == other.firstname) and (self.lastname == other.lastname))
def __eq__(self, other):
    return (((self.id is None) or (other.id is None) or (self.id == other.id)) and (self.firstname == other.firstname) and (self.lastname == other.lastname))