win32uiole.GetIDispatchForWindow

PyIDispatch = GetIDispatchForWindow()

Gets an OCX IDispatch pointer, if the window has one!