MyPy typing and test compliance

Currently MyPy tests are printing for debug purposes but we don't have passing MyPy tests. We should improve MyPy compliance and log or add comments where these are not yet compliant.