Amazon interview question

Recursion over a directory tree in Python