import os, tempfile

d = tempfile.mkdtemp()

os.system("""
    cd "{0}"
    mkdir -p one/sample another/too
    touch one/file one/sample/more another/also another/too/many""".format(d))
for root, directories, filenames in os.walk(top=d):
    print("{0!r}".format(filenames))
os.system("rm -rf '{0}'".format(d))
