Adding trees.py

After it was recovered from the depths of hell