Simple python Tree implementations