Automatically include packages defined in **include** configuration key.

    :param pyramid.config.Configurator configurator: pyramid's app configurator
    :param dict includemes: include, a list of includes or dictionary

def _run_includemes(configurator, includemes):
    """
    Automatically include packages defined in **include** configuration key.

    :param pyramid.config.Configurator configurator: pyramid's app configurator
    :param dict includemes: include, a list of includes or dictionary
    """
    for include in includemes:
        if includemes[include]:
            try:
                configurator.include(include, includemes[include])
            except AttributeError:
                configurator.include(include)