Snowflake Connector Python Lambda If Statement