def _get_child_as(parent, tag, construct):
 child = parent.find(_ns(tag))
 if (child is not None):
  return construct(child)

def _get_child_as ( parent , tag , construct ) : child = parent . find ( _ns ( tag ) ) if ( child is not None ) : return construct ( child )
find a child node by tag .