Error storing a pickled object to database

This makes me think that a string must be decoded.
Are you using python 2.7?