A simple implementation of the circular binary segmentation algorithm in python.
import cbs
data = cbs.generate_normal_time_series(10)
L = cbs.segment(data)
The resulting list L contains pairs (x,y) where each slice data[x:y] is a distinct segment of the data.