Forgot to mention one important thing. You will also need to simulate mouse movement using the following code:
Code:
win32api.mouse_event(win32con.MOUSEEVENTF_ABSOLUTE,int(65535*x),int(65535*(1.0-y)),0)
The
x,y values represent the normalized screen coordinates, which should be equal to the IR position of the wiimote, assuming you are in fullscreen mode.