def set_remote_var(self, name, val_type, value):
    self.pending_vars[name] = (val_type, value)
    if self._is_batch:
        self._batch_vars[name] = value
    else:
        self._send_remote_var([(name, value)])
def set_remote_var(self, name, val_type, value):
    self.pending_vars[name] = (val_type, value)
    if self._is_batch:
        self._batch_vars[name] = value
    else:
        self._send_remote_var([(name, value)])