Check None with "is not", not equality comparison

As PEP8.