Updated pickle integration to the latest Pandas API.