getting a list of all subdirectories in the directory `directory`,os.walk(directory)