Create sametree.py