def _send_scene(self):
    if self.socket:
        combined_scene = self.scene
        if (self._batch_vars is not None):
            for (key, value) in self._batch_vars.items():
                combined_scene['vars'][key]['value'] = json.dumps(Oplist(Expr.to_dict(value)).to_list())
        self._send_packet((Actions.UPDATE_SCENE.to_bytes(4, 'big') + json.dumps(self.scene).encode()))
def _send_scene(self):
    if self.socket:
        combined_scene = self.scene
        if (self._batch_vars is not None):
            for (key, value) in self._batch_vars.items():
                combined_scene['vars'][key]['value'] = json.dumps(Oplist(Expr.to_dict(value)).to_list())
        self._send_packet((Actions.UPDATE_SCENE.to_bytes(4, 'big') + json.dumps(self.scene).encode()))