Problems with using a rough greyscale algorithm? Problems with using a rough greyscale algorithm? python python