def _to_attrdict(self, attrs=None):
result = self._baseattrs<EOL>for attr in attrs:<EOL><INDENT>if hasattr(self, attr):<EOL><INDENT>result[attr] = getattr(self, attr)._to_attrdict(attrs)<EOL><DEDENT><DEDENT>return result<EOL>
Get extra attributes