Segmentation In Image Processing Python Code For Snake