how to convert PNG image to python code

Hi All,
i know how to convert bitmap image to py.
but i wants to know convertion between PNG to py.
can anybody help me.

Thanks