Dynamic Time Warping in Pure Python