Minimum Depth of Binary Tree(Python)