def _get_full_output(node, for_output=False):
 ret = {}
 for item in six.iterkeys(node):
  value = node[item]
  if ((value is not None) and for_output):
   value = str(value)
  ret[item] = value
 return ret

def _get_full_output ( node , for_output = False ) : ret = { } for item in six . iterkeys ( node ) : value = node [ item ] if ( ( value is not None ) and for_output ) : value = str ( value ) ret [ item ] = value return ret
helper function for _list_nodes to loop through all node information .