I’m just curious why there’s two methods of drawing paths via scripts? One is the method used in @mekkablue’s script and documented in the Python Scripting API. And another in the Core which is what @lnp’s example was.
There are differente use cases. If you just need to add a few nodes, it is easier to just add them. If you constantly convert between different outlines data formats, it might be a good idea to build you own pen (the format of the pen is explained in the Core page). Pens are explained on this page: http://www.robofab.org/objects/pen.html