modified tree.py :

o improved Tree.paths_to_leaves() following caesar0301's suggestion
o sorted functions in tree.py by alphabetical order