Add type annotations to the different parameters
and return values to modernize the python used.
This will also introduce mypy as another tool
for static code analysis which will currently not
run in CI
Change-Id: Ic09e47673f916328568c413d0e8485d36c283c24