'Send a response'

def send(self, request=REQUEST_DEFAULT, **kwargs):

    data = dict(kwargs)
    if (request is Driver.REQUEST_DEFAULT):
        request = self.active_request
    if request:
        data['req_id'] = request.id
    if ('success' not in data):
        data['success'] = True
    elif (data['success'] is None):
        del data['success']
    buf = json.dumps(data, separators=(',', ':'))
    buf_len = str(len(buf))
    log.debug('sending:    %s:[%s]', buf_len, buf)
    self.send_queue.put(buf)
