See https://github.com/DataBooth/bubble-cosh if interested - especially the justfile with recipes to run the code.
See pyproject.toml for dependencies (highly recommend using uv package manager).
See README.md for a clear description.
As time is short I haven't done rigorous testing yet - but hoped that you might find the work of (some) interest.
Cheers,
Michael