for root, dirs, files in os.walk(yourpath, topdown=False):
    for name in files:
        print(os.path.join(root, name))
stuff
for name in dirs:
    print(os.path.join(root, name))
stuff
Python Open Every File in a Folder