Comparison against None should be done with `is` and `is not` (pep8 recommendation)