Curl Python Command To Exit