def fun(image_in, image_out): img = Image.open(image_in) maze = Maze(img, image_out) #maze._print() maze._color()