Moving the mouse cursor using python is really easy using python with package pyautogui
from pyautogui import position, moveTo
import time
def run():
moveTo((position().x-10), (position().y+10))
time.sleep(10)
run()
if __name__ == "__main__":
run()