If I understand your question correctly...although not finance related, this blog shows 2 examples of using TabPy to access some machine learning algorithms (where you can see the mechanism for accessing Python libraries with "pre-built" clustering algorithm, and a "trained" algorithm)
Hope that helps.
Do you know of any place where the sample workbook files related to your linked BLOG can be obtained? When you try to get them now, you have to supply a userid and password (obviously not Tableau Public).
I don't, unfortunately...Bora (who wrote the blog) has left Tableau, so I guess he no longer has his account. You can download the Jupyter notebook and data, so can re-create (from Bora's blog) the functionality...if not his nice dashboards! I'll have a check if any of my colleges downloaded his workbook, and still has it... but they might well have deleted them by now, if they did.