'Gets console output for the node.
:param      node: Node which should be used
:type       node: :class:`Node`
:return:    A dictionary with the following keys:
- instance_id (``str``)
- timestamp (``datetime.datetime``) - last output timestamp
- output (``str``) - console output
:rtype:     ``dict``'

def ex_get_console_output(self, node):

    params = {'Action': 'GetConsoleOutput', 'InstanceId': node.id}
    response = self.connection.request(self.path, params=params).object
    timestamp = findattr(element=response, xpath='timestamp', namespace=NAMESPACE)
    encoded_string = findattr(element=response, xpath='output', namespace=NAMESPACE)
    timestamp = parse_date(timestamp)
    if encoded_string:
        output = base64.b64decode(b(encoded_string)).decode('utf-8')
    else:
        output = None
    return {'instance_id': node.id, 'timestamp': timestamp, 'output': output}
