Create Maximum Depth of Binary Tree (pyemma)