fix #52: don't set code after clear, import a 'notebook' module
remove notebook dependency from builtins, clean up notebook run context