Pickle objects for redis