updated sendRequest.py