modification of the _get_retry method

I propose this pull request to modify the _get_retry method of the Client class to return a request object rather than just the json.