Python Gtk+ Application converting an image to byte array.