Contributions are welcome. I even believe that this whole code should be migrated from python-requests to curl.