Toy scripts to prototype the segmental change point detection