def _GetJson(self, path):
    response = self.server.get(path)
    data = response.data
    if (response.headers.get('Content-Encoding') == 'gzip'):
        data = gzip.GzipFile('', 'rb', 9, io.BytesIO(data)).read()
    return json.loads(data.decode('utf-8'))
def _GetJson(self, path):
    response = self.server.get(path)
    data = response.data
    if (response.headers.get('Content-Encoding') == 'gzip'):
        data = gzip.GzipFile(, 'rb', 9, io.BytesIO(data)).read()
    return json.loads(data.decode('utf-8'))