def safe_import(module_name, class_name):
    if type(class_name) is list:
        for name in class_name:
            safe_import(module_name, name)
        return
    package = __package__
    # TODO: remove when we really want to drop 3.2 support
    # python 3.2 don't set __package__
    if not package:
        package = __name__
    try:
        module = importlib.import_module(module_name, package)
        globals()[class_name] = getattr(module, class_name)
    except ImportError as error:
        logger.warning("Can't Import Widget: '%s.%s', %s", module_name, class_name, error)
        logger.debug("%s", traceback.format_exc())
Marathon will not make the app disappear until after all the tasks have died
dataset/ETHPy150Open qtile/qtile/libqtile/widget/__init__.py/safe_import--crossover with--dataset/ETHPy150Open Yelp/paasta/paasta_itests/steps/bounces_steps.py/and_we_wait_a_bit_for_the_app_to_disappear