def __getattr__(self, name):
        u"""Attribute access.

        Returns a list o children, if there is more than 1.
        Returns a child, if there is exactly 1.
        """
        children = self.children(name)

        if len(children) > 1:
            return children
        elif len(children) == 1:
            return children[0]
def __getattr__ ( self , name ) : children = self . children ( name ) if len ( children ) > 1 : return children elif len ( children ) == 1 : return children [ 0 ]
u"""Attribute access.

        Returns a list o children, if there is more than 1.
        Returns a child, if there is exactly 1.