__eq__ operator for python3