Python client using pycurl to correctly supports gzip