Solved
import comtypes from _ctypes import pointer ... error = pointer(comtypes.BSTR()) cmd = self.gd.ctrl.EcrCmd("nofis apri", error)