Tinkering with the __eq__ function

Signed-off-by: Nick Lambourne <nick.lambourne@gmail.com>