PEP8: Use is instead of == when comparing to None
Merge pull request #747 from legoktm/pep8

PEP8: Use is instead of == when comparing to None