Insert a waypoint anywhere

I want to insert waypoints in the middle of a waypoint in python.

Is the only way to do this is to create an array of all waypoints on the python side and send them in order starting with seq:0?