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

Thanks Robert!  I got it working.  I just needed to set my port correctly. It was incorrectly set to 58772 which is what we use for making http connections.  I changed it to 1972 and it worked.