code: async def send_script(self, conn_id, data):
          
  
          self._ensure_connection(conn_id, True)
          dev = self._get_property(conn_id, 'device')
          conn_string = self._get_property(conn_id, 'connection_string')
  
          # Simulate some progress callbacks (0, 50%, 100%)
          await self.notify_progress(conn_string, 'script', 0, len(data))
          await self.notify_progress(conn_string, 'script', len(data) // 2, len(data))
          await self.notify_progress(conn_string, 'script', len(data), len(data))
  
          dev.script = data
docs: Asynchronously send a a script to this IOTile device
  
          Args:
              conn_id (int): A unique identifier that will refer to this connection
              data (bytes or bytearray): the script to send to the device