There is https://github.com/jawah/niquests library that I have been using since a while which has HTTP/2 and HTTP/3 support implemented in it among many other features and seems to be drop-in replacement for popular requests library.
requests