'Collect Rekall rendering commands and send to the server.
Args:
rekall_session: The Rekall session object.
action: The GRR Client Action which owns this renderer. We will use it to
actually send messages back to the server.
**kwargs: Passthrough.'

def __init__(self, rekall_session=None, action=None, **kwargs):

    try:
        sys.stdout.isatty()
    except AttributeError:
        sys.stdout.isatty = (lambda : False)
    super(GRRRekallRenderer, self).__init__(session=rekall_session, **kwargs)
    self.action = action
    self.plugin = None
    self.context_messages = {}
    self.new_context_messages = {}
    self.robust_encoder = json_renderer.RobustEncoder(logging=rekall_session.logging)
