def must_apply(elem, type):
    """ Return True if the 'applied' attribute is not already true. """
    if elem is None:
        return False
    if 'applied' in elem.attrib:
        if elem.attrib['applied'].lower() == 'true': 
            print('Skipping', type, 'Transform that was already applied')
            return False
    return True