Update traverse_directories.py