Running a batch job to update user profiles via the Genesys Cloud API. The initial 200 OK is fine, but after about 50 requests, I start hitting 401 Unauthorized. My Python script uses a simple retry loop with requests.get('/oauth/token') to refresh, but the new token isn’t being applied to subsequent calls in the same session. Is there a specific header or flow I’m missing for long-running scripts?