Socket timeout errors?

This is behaviour I haven’t seen before. It’s a python script that is bulk updating a bunch of users. For each user it calls:

            try:
                result = auth0.users.update(
                    auth0_profile['user_id'], patch)
            except Auth0Error as e:
                print(e)
            else:
                print(result)

I run scripts like this quite often. This is the first time I have seen these, what appear to be, SSL socket timeout errors. After a kinda-sorta random number of users it fails with the exceptions below (lightly edited). Possibly I just need to update my python + libraries.

Patching auth0|jane@doe.com with patch: {'app_metadata': {'foobar': None}}
Traceback (most recent call last):
  File "/Users/markd/tmp/20200930/venv/lib/python3.7/site-packages/urllib3/connectionpool.py", line 426, in _make_request
    six.raise_from(e, None)
  File "<string>", line 3, in raise_from
  File "/Users/markd/tmp/20200930/venv/lib/python3.7/site-packages/urllib3/connectionpool.py", line 421, in _make_request
    httplib_response = conn.getresponse()
  File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/http/client.py", line 1321, in getresponse
    response.begin()
  File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/http/client.py", line 296, in begin
    version, status, reason = self._read_status()
  File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/http/client.py", line 257, in _read_status
    line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
  File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/socket.py", line 589, in readinto
    return self._sock.recv_into(b)
  File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/ssl.py", line 1052, in recv_into
    return self.read(nbytes, buffer)
  File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/ssl.py", line 911, in read
    return self._sslobj.read(len, buffer)
socket.timeout: The read operation timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/markd/tmp/20200930/venv/lib/python3.7/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/Users/markd/tmp/20200930/venv/lib/python3.7/site-packages/urllib3/connectionpool.py", line 727, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/Users/markd/tmp/20200930/venv/lib/python3.7/site-packages/urllib3/util/retry.py", line 403, in increment
    raise six.reraise(type(error), error, _stacktrace)
  File "/Users/markd/tmp/20200930/venv/lib/python3.7/site-packages/urllib3/packages/six.py", line 735, in reraise
    raise value
  File "/Users/markd/tmp/20200930/venv/lib/python3.7/site-packages/urllib3/connectionpool.py", line 677, in urlopen
    chunked=chunked,
  File "/Users/markd/tmp/20200930/venv/lib/python3.7/site-packages/urllib3/connectionpool.py", line 428, in _make_request
    self._raise_timeout(err=e, url=url, timeout_value=read_timeout)
  File "/Users/markd/tmp/20200930/venv/lib/python3.7/site-packages/urllib3/connectionpool.py", line 336, in _raise_timeout
    self, url, "Read timed out. (read timeout=%s)" % timeout_value
urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='mytenant.auth0.com', port=443): Read timed out. (read timeout=5.0)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "remove_wat_username.py", line 74, in <module>
    main()
  File "remove_wat_username.py", line 64, in main
    auth0_profile['user_id'], patch)
  File "/Users/markd/tmp/20200930/venv/lib/python3.7/site-packages/auth0/v3/management/users.py", line 145, in update
    return self.client.patch(self._url(id), data=body)
  File "/Users/markd/tmp/20200930/venv/lib/python3.7/site-packages/auth0/v3/management/rest.py", line 72, in patch
    response = requests.patch(url, json=data, headers=headers, timeout=self.timeout)
  File "/Users/markd/tmp/20200930/venv/lib/python3.7/site-packages/requests/api.py", line 149, in patch
    return request('patch', url, data=data, **kwargs)
  File "/Users/markd/tmp/20200930/venv/lib/python3.7/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/Users/markd/tmp/20200930/venv/lib/python3.7/site-packages/requests/sessions.py", line 530, in request
    resp = self.send(prep, **send_kwargs)
  File "/Users/markd/tmp/20200930/venv/lib/python3.7/site-packages/requests/sessions.py", line 643, in send
    r = adapter.send(request, **kwargs)
  File "/Users/markd/tmp/20200930/venv/lib/python3.7/site-packages/requests/adapters.py", line 529, in send
    raise ReadTimeout(e, request=request)
requests.exceptions.ReadTimeout: HTTPSConnectionPool(host='mytenant.auth0.com', port=443): Read timed out. (read timeout=5.0)

This seems to have resolved itself. On my last attempt the script ran to completion.