code: def reset_script(self):
          
  
          self.remote_bridge.status = BRIDGE_STATUS.IDLE
          self.remote_bridge.error = 0
          self.remote_bridge.parsed_script = None
          self._device.script = bytearray()
  
          return [0]
docs: Clear any partially received script.