python update with curl