python: list all the file names in a directory and its subdirectories and then print the results in a txt file,"a = open('output.txt', 'a')"