Image Segmentation Algorithms Python