test script in python to post json and getting back the reply after hitting the server written