use `is` when comparing an object to None

see `Comparisons to singletons like None should always be done with is or is not, never the equality operators.` from http://legacy.python.org/dev/peps/pep-0008/