Native serialization for Python