Python and Javascript code used in the post Bezier and Picasso