How to Traverse a Tree in Python