def console_namespace():
    import console_python
    get_consoles = console_python.get_console
    consoles = getattr(get_consoles, 'consoles', None)
    if consoles:
        for (console, stdout, stderr) in get_consoles.consoles.values():
            return console.locals
    return {}
def console_namespace():
    import console_python
    get_consoles = console_python.get_console
    consoles = getattr(get_consoles, 'consoles', None)
    if consoles:
        for (console, stdout, stderr) in get_consoles.consoles.values():
            return console.locals
    return {}