Hey Lynn,
I can't write scripts, but here is a way you could model your braids.
1. Make a simple cube object, give it 12 divisions X and Y. Rotate it 45 degrees.
2. Delete all unnecessary vertices, leaving a structure like what is shown in "Type2_Step2". Fill in all the gaps that are left by deleting vertices.
3. Take the rows of vertices shown in yellow and merge them together. Move the merged vertices to line up straight in the X direction like shown in green.
4. Now shape the braids by selecting the edges that surround the braids and pulling them back along the Y direction. Go to Edit>Edge Properties, and make the edges creased. Double click the object in "Object" mode, make the crease angle 91*. This should make it nice and smooth with creases where the hair is folded under another braid of hair. Give it a material and show us what you come up with!
You can delete the edges on top and bottom, copy the object and move it along Y direction and join it to the original, then merge vertices. This mesh is seamlesly tilable, so you can make your braid as long as you wish.