change __equal__ to __eq__