def make_transparent(image):
data = image.copy().getdata()<EOL>modified = []<EOL>for item in data:<EOL><INDENT>if _check_pixel(item) is True:<EOL><INDENT>modified.append((<NUM_LIT:255>, <NUM_LIT:255>, <NUM_LIT:255>, <NUM_LIT:255>))  <EOL>continue<EOL><DEDENT>modified.append(item)<EOL><DEDENT>image.putdata(modified)<EOL>return image<EOL>
Turn all black pixels in an image into transparent ones