Gradient Based Image Segmentation Python Coder