As mentioned by Mark Ransom, your palette will only have one level of transparency.
When saving a palette, you need to specify which color index you want to be transparent, for example:
im.save("logo_py.png", transparency=0)
to save the image as palitic colors and use the first color as a transparent color.
source share