pep8: E711 comparison to None should be 'if cond is None:'