get a list of all subdirectories in the directory `directory`,[x[0] for x in os.walk(directory)]