Partial Serialization for python objects