This is a python port of the R segmented package.
The current implementation can fit a single break point. Multi-break point capability will be added at some point. As will some of the bootstrapping abilities of the R package.
This is code is used in the Turbustat package.
statsmodels