Different contributors have different code styles. The recommended approach to handle this is to have a pre-commit/CI step that validates that the source code follows some style.
For Python, I have been using ruff, that automatically fixes many issues, and detects code smells.
If you think it's useful, I can prepare a PR. But I don't think I should spend the time if you do not think it's worthwhile.