PEP8 - comparisons to None

[PEP8 - Programming Recommendations](http://legacy.python.org/dev/peps/pep-0008/#programming-recommendations)