How to draw curve on model surface?

i have two markups point on a model surface , is it possible to draw a curve on the model surface to connect two markups point through python script? or is there any extensions can do this work?