There's also a module for fully integrating this with the Python requests library: https://github.com/el1s7/curl-adapter