now passing response.text instead of response.content to json.loads() to avoid Python3 TypeError (it doesn't decode binary to str)