pep8: comparisons with None

Comparisons to singletons like None should always be done with is or is not, never the equality operators.