I used the e01_helloworld.py example given in the iota python workshop. Instead of nodes.devnet.iota.org:443, I changed it to my IRI nodes' Ip address and port. It is like:api = Iota('https://IP adress:443').
Is this the correct method? I ma getting a connection refused error. If I don't make any changes to the example script it work perfectly.