Change comparision to 'is' in order to fix flake8