Simply define __eq__ and __repr__ in terms of a set of relevant fields