Update segmentation.py