I am writing a Python script and in part of it I want to do an Add > Curve > Path operation, but instead of the default 5-vert straight path, I want one at the object origin (which I have pre-defined with coordinates
orig_z), and then another at some other location (let's say coords
Instead of the default primitive NURBS path, I want the script to add my own, which is just 2 vertices.
Here's that line of my script as it is currently:
bpy.ops.curve.primitive_nurbs_path_add(radius=1, enter_editmode=False, align='CURSOR', location=(orig_x, orig_y, orig_z), scale=(1, 1, 1))
I can't figure out if I should start by deleting all the vertices, then re-adding two, OR if I should try to select just the second  and fourth  indices and Dissolve Vertices... I've tried both approaches without success. I'm doing something wrong when trying to target those verts.
Can someone please point me in the right direction?