def __hash__(self):
    return hash(tuple((getattr(self, field) for field in self._ordered_fields)))
def __hash__(self):
    return hash(tuple((getattr(self, field) for field in self._ordered_fields)))