Fix issues flagged by Ruff
Running the linter Ruff with the default settings flags a number of issues, which are fixed in this PR.
Mostly unused imports/variables and many single line if-statements, which are generally considered (also by me
Running the linter Ruff with the default settings flags a number of issues, which are fixed in this PR.
Mostly unused imports/variables and many single line if-statements, which are generally considered (also by me