Experimenting with pySkeleton. Code taken from http://vision.mas.ecp.fr/Personnel/teboul/pySkeleton.php