def nice_print_node(node):
 node_dict = _obj_to_dict(node)
 node_dict['values'] = {value_id: _obj_to_dict(value) for (value_id, value) in node.values.items()}
 print '\n\n\n'
 print ('FOUND NODE', node.product_name)
 pprint(node_dict)
 print '\n\n\n'

def nice_print_node ( node ) : node_dict = _obj_to_dict ( node ) node_dict [ 'values' ] = { value_id : _obj_to_dict ( value ) for ( value_id , value ) in node . values . items ( ) } print '\n\n\n' print ( 'FOUND NODE' , node . product_name ) pprint ( node_dict ) print '\n\n\n'
print a nice formatted node to the output .