Update traverse_mimic_directory.py