Think you have to override __hash__ and __ne__.