reverted list() hack in tree.py. tests passing