Add CI job for linting python scripts
So far most errors are disabled. This only adds the CI commands to run the tests and solves a few non-controversial error messages.
It also adds code to check types, but only adds minimal type annotations needed for passing in regular mypy mode.
Edited by Jos van den Oever