Can this be done in Blender through Python:
No need. Blender has the same thing. Look up this tutorial.
Thanks ridix! But, the advantage I think of having as the other way is that it doesn’t have to taper at the end? Is the tapering necessary so that it comes to a point?