reorder all library arguments so node_list is last

node_list should default to None and should be the last argument so
non-optional arguments can come before it.