Tarana Wireless interview question

Python function to print the depth-first traversal of a tree?