PEP8 cleanup: change `== None` to `is None`