def __eq__(self, other):
    if (type(other) is type(self)):
        return (self.contents == other.contents)
    else:
        return False
def __eq__(self, other):
    if (type(other) is type(self)):
        return (self.contents == other.contents)
    else:
        return False