matches = []
for dirpath, dirnames, filenames in os.walk(os.path.expanduser('~/x/y')):
    matches.extend(os.path.join(dirpath, x) for x in dirnames + filenames)
equivalent to the find coreutil command in python 3 for recursively returning all files and folders in a directory structure?