code: def configure_proxy(self, curl_object):
          
          curl_object.setopt(curl_object.PROXY, self._proxy_hostname)
          curl_object.setopt(curl_object.PROXYPORT, self._proxy_port)
          curl_object.setopt(curl_object.PROXYTYPE, curl_object.PROXYTYPE_SOCKS5)
          if self._proxy_user and self._proxy_passwd:
              curl_object.setopt(curl_object.PROXYUSERPWD, '%s:%s' % (self._proxy_user, self._proxy_port))
docs: configure pycurl proxy settings