Would it not be better to post this info via Python instead of shelling out to curl? Using urllib2 from stdlib or requests would be pretty easy I think.