def prepare_path_for_serialization(path):
 return [(unicode(path_item.usage_key), path_item.display_name) for path_item in path]

def prepare_path_for_serialization ( path ) : return [ ( unicode ( path_item . usage_key ) , path_item . display_name ) for path_item in path ]
return the data from a list of pathitems ready for serialization to json .