Start to switch to actual type hints
Python supports type hints directly in the language. So migrate the type information from the comments into that place. This will allow tools like mypy to perform type checks in the future.
This is a first bunch of this type of changes.