python create rest api post example