add symmetric tree python version