dev: update for 3.11 runtime
- Update test environments to Python 3.11
- Add bandit security scanner
- Fix bandit errors
- Add isort import linter
- Fix isort errors
- Convert to pytest and add coverage reporting
- Generate and collect test report files for GitLab integration
Bug: T345198