def extra_attrib_keys(a, b):
    """
    Return list of attributes in a which aren't in b by attribute key.

    :param xml.etree.ElementTree.Element a: First element
    :param xml.etree.ElementTree.Element b: Second element
    """
    return set(a.attrib.keys()) - set(b.attrib.keys())