A French scientist has unravelled a formula for trick roping, made famous in Western movies, to teach himself how to lasso like a cowboy.