I have a python function that takes a file as an argument, let's call it `func(file)`. I also have a directory containing around 100 files, which shall be passed to a python script `execute_function.py`, this python script takes a list of files and apply `func(file)` to then. What is the simplest way to subdivide those 100 files in to 4 stacks of 25 files and execute then in 4 different python kernels with `execute_function.py`?

It's basically a brute force parallelization with bash.