import win32com.client tr = win32com.client.Dispatch("CognosTransformer.Application") print(tr.Version) tr.Visible = 1