I think this package is the quickest way: https://github.com/Mayazure/py-stats19 See here for my starter for 10, the Python code probably needs to be updated: https://github.com/ITSLeeds/TDStests/blob/1258a53531b2c7aa8b73e9879339cb02ab3741f4/p1/index.qmd#L147-L168