class Category(object):

    def __init__(self, *args):
        self.args = args

def __hash__(self):
    return hash(self.args)

def __eq__(self, other):
    return self.args == other.args
a = Category('Analyze', 'True', 'False', 'False', 'FINAL')
b = Category('Analyze', 'True', 'False', 'False', 'FINAL')
mydict = {a: 1}
python equivalent of Comparable