python implementation of dtw for finding period in data