Script needed

Is there a Python script that allows a mesh to strech, like the ropes in a wrestling game?