Use "is" or "is not" when compare with None

See PEP8 explanation http://www.python.org/dev/peps/pep-0008/#programming-recommendations