Cursor Function In Python Example