Changed os.listdir to os.walk