This python package provides a native Python client to access SAML/ECP-authenticated content over HTTP with CILogon.
See https://ciecplib.readthedocs.io/en/latest/#installation for installation instructions.
>>> from ciecplib import request
>>> response = request('https://somewhere.org/mywebpage/')