ENG-5303 Improve python client timeout handling.