modify mktree.py