Serialize and Deserialize

Hi bit of a noob here, but I am creating a digital etch-a-sketch with a 64x64 matrix on a raspberry pi 4. I am using python for the coding language. I was thinking I could use Serialize and Deserialize as a way to save and reload image that are drawn on the screen. I can’t seem to finad any examples of how to use serialize/deserialize. Am I totally on the wrong track here? Does anyone have some good examples of using these functions? Thanks in advance!