python code to post rest api