Fix import errors
Fix wrong variable name error
Regenerate comtypes wrappers