__eq__ for making comparisons of attributes using __dict__