code: def _AcceptRPC(self):
      
      request = self._ReadObject()
      if request['func'] == '__kill__':
        self.ClearBreakpoints()
        self._WriteObject('__kill_ack__')
        return False
      if 'func' not in request or request['func'].startswith('_'):
        raise RpcException('Not a valid public API function.')
      rpc_result = getattr(self, request['func'])(*request['args'])
      self._WriteObject(rpc_result)
      return True
docs: Reads RPC request from stdin and processes it, writing result to stdout.
  
      Returns:
        True as long as execution is to be continued, False otherwise.
      Raises:
        RpcException: if no function was specified in the RPC or no such API
            function exists.