speed up pickling array in Python 2.7