Image Segmentation In Python Code For Snake