Making Rest Api Calls In Python