safer serialization of simple python types (Python recipe) by S W Unpickling from an untrusted source, such as a network connection, can allow maliciously formed pickles to run arbitrary code. This recipe presents a simple solution for serializing and unserializing simple Python types. Only simple Python types can be serialized, which makes the use of this algorithm safer than using the pickle mod

