human
Complete this python program:
def CreateRequestHandler(root_path, login_url, static_caching=True, default_partition=None, interactive_console=True, secret_hash='xxx'):
assistant
#Here is the Python program you requested.

    """Creates a new BaseHTTPRequestHandler sub-class.
    This class will be used with the Python BaseHTTPServer module\s HTTP server.
    Python\s built-in HTTP server does not support passing context information
    along to instances of its request handlers. This function gets around that
    by creating a sub-class of the handler in a closure that has access to
    this context information.
    Args:
    root_path: Path to the root of the application running on the server.
    login_url: Relative URL which should be used for handling user logins.
    static_caching: True if browser caching of static files should be allowed.
    default_partition: Default partition to use in the application id.
    interactive_console: Whether to add the interactive console.
    Returns:
    Sub-class of BaseHTTPRequestHandler.
    """
    application_module_dict = SetupSharedModules(sys.modules)
    application_config_cache = AppConfigCache()
    class DevAppServerRequestHandler(BaseHTTPServer.BaseHTTPRequestHandler, ):
        "Dispatches    URLs    using    patterns    from    a    URLMatcher.\n\n                The    URLMatcher    is    created    by    loading    an    application's    configuration    file.\n                Executes    CGI    scripts    in    the    local    process    so    the    scripts    can    use    mock\n                versions    of    APIs.\n\n                HTTP    requests    that    correctly    specify    a    user    info    cookie\n                (dev_appserver_login.COOKIE_NAME)    will    have    the    'USER_EMAIL'    environment\n                variable    set    accordingly.    If    the    user    is    also    an    admin,    the\n                'USER_IS_ADMIN'    variable    will    exist    and    be    set    to    '1'.    If    the    user    is    not\n                logged    in,    'USER_EMAIL'    will    be    set    to    the    empty    string.\n\n                On    each    request,    raises    an    InvalidAppConfigError    exception    if    the\n                application    configuration    file    in    the    directory    specified    by    the    root_path\n                argument    is    invalid.\n                "
        server_version = 'AppScaleServer/1.10'
        module_dict = application_module_dict
        module_manager = ModuleManager(application_module_dict)
        config_cache = application_config_cache
        rewriter_chain = CreateResponseRewritersChain()
        def __init__(self, *args, **kwargs):
            'Initializer.\n\n                        Args:\n                                args:    Positional    arguments    passed    to    the    superclass    constructor.\n                                kwargs:    Keyword    arguments    passed    to    the    superclass    constructor.\n                        '
           ...