I have a Bash script that contains the following code:

```
merge_ROOT_files(){
    output_file=""$(date -u "+%Y-%m-%dT%H%M%S")"Z_merged.root"
    list_of_files="$(find . -name \*.root -type f)"
    command="hadd "${output_file}""
    for current_file in ${list_of_files}; do
        echo "found ROOT file "${current_file}""
        command=""${command}" "${current_file}""
    done
    echo "merge ROOT files to output ROOT file "${output_file}""
    echo "merge command: ${command}"
    eval "${command}"
}

merge_ROOT_files

```

You can see that it searches recursively for files that end in `.root` and then it loops over those files. How could I do something similar in Python? I could imagine generating a list of the various found files with their full or relative paths and then looping over that list, but I'm not sure how to generate such a list.