Python selenium get json response. The data can be in JSON format or as partial HTML.