Segment repo for python