human
Complete this python program:
def _register_core_blueprints(app):
assistant
#Here is the Python code you requested.

    """Register all blueprints defined in the `views` folder
    """
    def is_blueprint(mm):
        return isinstance(mm, Blueprint)
    for (loader, name, _) in pkgutil.iter_modules(['ckan/views'], 'ckan.views.'):
        module = loader.find_module(name).load_module(name)
        for blueprint in inspect.getmembers(module, is_blueprint):
            app.register_blueprint(blueprint[1])
            log.debug(u'Registered    core    blueprint:    {0!r}'.format(blueprint[0]))