CI: Address linting errors in flake8 >= 3.8.1
xref #34150

This partially addresses the above issue by:

- Ignoring E741
- Fixing other linting errors

The issue with flake8-rst is handled temporarily in #34151, and the build here will fail the flake8-rst part until that is merged in.