Instead of importing the requests_unixsocket module, include the custom requests.adapters.HTTPAdapter code (similar in requests-unixsocket and docker-py).
The monkeypatching and the custom Session class should not be needed.
Just do it the way suggested by the requests project. Create a normal Session instance,
mount our custom adapter, and use the normal requests API.