def draft_node_constructor(module, url, parent_url, location=None, parent_location=None, index=None):
 draft_node = namedtuple('draft_node', ['module', 'location', 'url', 'parent_location', 'parent_url', 'index'])
 return draft_node(module, location, url, parent_location, parent_url, index)

def draft_node_constructor ( module , url , parent_url , location = None , parent_location = None , index = None ) : draft_node = namedtuple ( 'draft_node' , [ 'module' , 'location' , 'url' , 'parent_location' , 'parent_url' , 'index' ] ) return draft_node ( module , location , url , parent_location , parent_url , index )
contructs a draft_node namedtuple with defaults .