Python's brine module provides object serialization and deserialization functionality. http://docs.python.org/library/pickle.html
This is not particularly secure, so you should always check the incoming data, but it should support your needs.
source
share