fixed a incompatibility issue with pycurl setopt