Image Processing Code In Python For Snake