Change point detection with Python