def get_component_type(component_name):
    comp_type = 0
    try:
        mod_components1.index(component_name)
        comp_type |= 1
    except ValueError:
        pass
    try:
        mod_components2.index(component_name)
        comp_type |= 2
    except ValueError:
        pass
    try:
        mod_components3[component_name]
        comp_type |= 4
    except KeyError:
        pass
    return comp_type
def get_component_type(component_name):
    comp_type = 0
    try:
        mod_components1.index(component_name)
        comp_type |= 1
    except ValueError:
        pass
    try:
        mod_components2.index(component_name)
        comp_type |= 2
    except ValueError:
        pass
    try:
        mod_components3[component_name]
        comp_type |= 4
    except KeyError:
        pass
    return comp_type