PEP8 fix

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