e3-663: python precommit
Extend pre-commit tasks to:
- check all files for end of line and end of file correctness
- do lint and format checks on Python files
Fix issues identified by above pre-commit tasks.
Extend pre-commit tasks to:
Fix issues identified by above pre-commit tasks.