Maximum Recursion Depth Exceeded While Pickling An Object