Python to create a TAP plan?

I find the creation of TAP plans for our case to be rather tedious.

Namely some of the most tedious tasks are creating our subdie maps and IO maps for every TAP loop. Not to mention they all use the same steps and we have to write them out anyway.

With python I could create the subdie and IO maps from the designers. I can create the TAP loops based on the steps we’ve identified. But with TAP editor we have to copy paste and make it manually every time.

Is there a way to automate the creation of TAP plans with python? I know python can be used within a TAP routine. But can python be used to actually create a TAP plan?

Alternatively, is there a way to recommended way to automate the creation of the sweep values of a step in a TAP plan in python?