DISPATCH-2321 Add mypy check for the Python code
19 files changed