Cursor Function In Python In Pynative