wrapping cPickle import in a try-catch