surface from 3 or 4 lines

hi guys
i am working on a way to create a surface from 3 lines/curves


i used python before
but i don’t know how to use it in blender

i need a script to make my tests going faster
any help

maybe this is the right direction?

http://wiki.blender.org/index.php/Dev:Ref/Release_Notes/2.68/Modeling#Bridge_Tool
http://www.blendernation.com/2013/01/20/f2-modeling-add-on-released/