The only scripts I have written so far for blender are very simple ..... as I am learning them too ......
what you are asking for is beyond what I have done so far - but its got me looking into being able
to control vertices and bisect between them ..... this seems very similar to the split edge loop command.
Will see if I can find the code for it ....... someone else should already have written this ......
I found this LINK ..... which is interesting but not sure if it will have in it what you need VIDEO RELATED TO THIS
and a link to the CROUCH scripts
I managed to get TUX part rigged ..... the Link is here
Tall Cafè Ubuntu
Just Give Me the Beans!
Ubuntu Extra Shot