This documentation shows how to connect and interact with IRIS using Python.  Following this worked for me:

https://docs.intersystems.com/irislatest/csp/docbook/DocBook.UI.Page.cls...

Using port 1972 per the example worked in my case but your installation may vary.  It requires Python 3 (3.4+).  When you download the Intersystems wheel file, make sure that the filename remains unchanged otherwise pip won't be able to install it.

Marlin