def __eq__(self, other):
    return (isinstance(other, Die) and (other.message == self.message) and (other.typ == self.typ))
def __eq__(self, other):
    return (isinstance(other, Die) and (other.message == self.message) and (other.typ == self.typ))