Flake8 style fix
Fix comparison with None for Py3