Genesys Cloud Python SDK bulk user creation via CSV fails with 409 Conflict on email duplicates

Does anyone know the most efficient way to handle 409 Conflict errors when using the Genesys Cloud Python SDK to bulk-create users from a CSV file? I am writing a script to provision new agents based on a daily CSV dump from HR. The script reads the CSV, constructs CreateUserRequest objects, and calls users_api.post_users in a loop. While the basic logic works, the script crashes immediately if the CSV contains an email address that already exists in Genesys Cloud. The SDK throws a PureCloudApiException with status code 409 and a message indicating the email is already in use. I cannot simply skip the error because I need to log which users were created, which were skipped due to duplicates, and which failed for other reasons. My current implementation uses a simple try-except block, but it feels inelegant and slow because it hits the API for every single row. I want to know if there is a pattern or a specific SDK method to check for user existence by email before attempting the POST request, or if I should be using a different endpoint entirely. I am currently using genesyscloud.users and genesyscloud.authentication modules. The error traceback points to the post_users call. I have tried using the users_api.get_users endpoint with email query parameters, but the response format is inconsistent and sometimes returns multiple users or none, making it hard to reliably check for existence before creation. Is there a recommended approach for idempotent bulk user creation in Python? Here is the relevant snippet that fails:

for row in csv_data:
 try:
 user_request = CreateUserRequest(
 email=row['email'],
 name=row['name'],
 division_id=DEFAULT_DIVISION_ID
 )
 users_api.post_users(body=user_request)
 print(f"Created user: {row['email']}")
 except PureCloudApiException as e:
 if e.status == 409:
 print(f"Skipped existing user: {row['email']}")
 else:
 raise e

This approach is brittle. I need a more robust solution.