def to_dict(self):
return {key: unwrap(value) for key, value in self.iteritems()}<EOL>
Returns the contents of the Document as a raw dict. Also recurses
into child Documents and DocumentLists converting those to dicts
and lists respectively.