cleanup rename tree leaves.py