@LN it would indeed be very handy for users to get working examples for a Python-based processing pipeline.
In case this is helpful, I had created a few parameterized Python functions elaborating from the example provided by Yaw. I had given a few examples in this post and I also have a small demo Jupyter Notebook.