python's built-in urllib module still doesn't support http2 (nor http3) in the year of 2025, luckily pycurl exists and supports modern standards
GitHub - pycurl/pycurl: PycURL - Python interface to libcurl
PycURL - Python interface to libcurl. Contribute to pycurl/pycurl development by creating an account on GitHub.GitHub