def shell_init_func():
 from simplewiki import database
 wiki = make_wiki()
 wiki.bind_to_context()
 return {'wiki': wiki, 'db': database}

def shell_init_func ( ) : from simplewiki import database wiki = make_wiki ( ) wiki . bind_to_context ( ) return { 'wiki' : wiki , 'db' : database }
called on shell initialization .