I am always looping through the files of a directory to perform various kinds of data manipulations. Thus, I always use the following code
for subdir, dirs, f