Ok, thx dudes! I just reconfig my NetBeans, now its using cPython. Everything works. I just had to changed the line
user32.SetCursorPos(windowRect.left + x, windowRect.top + y) to:
user32.SetCursorPos(c_ulong(windowRect.left + x), c_ulong(windowRect.left + y))