Ignoring "comparison to True..." error in flake8