add setopt(pycurl.NOSIGNAL, 1) to avoid mutithread error