def execute(self, obj):
    self.conn.request('POST', '/', json.dumps(obj), {'Authorization': self.authhdr, 'Content-type': 'application/json'})
    resp = self.conn.getresponse()
    if (resp is None):
        print('JSON-RPC: no response', file=sys.stderr)
        return None
    body = resp.read()
    resp_obj = json.loads(body)
    return resp_obj
def execute(self, obj):
    self.conn.request('POST', '/', json.dumps(obj), {'Authorization': self.authhdr, 'Content-type': 'application/json'})
    resp = self.conn.getresponse()
    if (resp is None):
        print('JSON-RPC: no response', file=sys.stderr)
        return None
    body = resp.read()
    resp_obj = json.loads(body)
    return resp_obj