Adding __hash__'s where there are __eq__'s