René Dudfield wrote:
The pickle module can make things easy.
Also, using one of the binary pickle formats will help to make it moderately hacking-resistant. -- Greg