`NotImplemented` is a singleton (like `None`) so this comparison (and elsewhere obviously) would be better using `is not`.