'import an app class'

def _import_app(self, app_path):

    app = None
    name = app_path.rsplit('.', 1)[(-1)]
    try:
        app = import_item(app_path)
    except ImportError:
        self.log.info("Couldn't    import    %s,    config    file    will    be    excluded", name)
    except Exception:
        self.log.warning('Unexpected    error    importing    %s', name, exc_info=True)
    return app
