Misc clean up
Fixes/Improvements/Internal changes:
- Use pre-commit to run sanity checks and formatting
- Whitespace and formatting fixes
- Fix Python linter reports
- Use a consistent deployment of LbEnv
- Improve the way we declare Git default branches (if not 'master')