Thanks flame1234! It looks great!
I have installed the PyPNG, I have never used it, but I am getting an error:
File "png.py", line 253, in check_palette
if int(x) != x or not(0 <= x <= 255):
ValueError: invalid literal for int() with base 10: ''
I am using the same file as you, python...