Nested: Make picklable in python