Python Snowflake Cursor Fetch Function