There is a similar question Access QGIS Topology Checker from Python, however this user was wanting to run the topology tool while I want to import certain rules. For example in arcgis
arcpy.AddRuleToTopology_management(for_validation, "Must Not Self-Overlap (Line)", nfc)
I saw this question about accessing qgis plugins from python. So I know I need to import the module, but I'm unsure the name of the module, or if it is written in C++ so importing into python directly is not possible.