def get(xml, path, coerce=None, default=None):
    """Extract a value from an ElementTree node"""
    node = xml.find(path)
    if node is None:
        return default
    if coerce is None:
        return node.text
    else:
        return coerce(node.text)