comms.http.get_authentication() uses requests.util.urlparse() function which is not member of the public API. urllib.parse.urlparse
should be used instead.
See also: see https://github.com/psf/requests/blob/eedd67462819f8dbf8c1c32e77f9070606605231/requests/compat.py#L58