File system traversal in Python