Fixes pickling issue cPickle.PicklingError: persistent id must be string

See https://groups.google.com/forum/#!topic/sqlalchemy/MWSQmiHW17g for details