Make exceptions picklable on Python 2.X