Segmentation In Image Processing Python Machine