[clang] Fix all mypy --strict errors in clang python binding (PR #101784)
TsXor wrote: @DeinAlptraum @Endilll I made this change mostly as a proof of concept: most type checking errors here originates from type information of C library functions invisible in type checker's eye. To really fix all type checking errors in a sane way instead of just putting a `#type: i