diff --git a/src/gui/mainwindow.cc b/src/gui/mainwindow.cc
index 4ab77cade9c7c07bb454e5ae13fdd22facf94722..6c4a1eeac603d764587d415c366b128e013204c7 100644
--- a/src/gui/mainwindow.cc
+++ b/src/gui/mainwindow.cc
@@ -257,9 +257,6 @@ namespace gepetto {
       if (osgWindows_.empty()) {
         // This OSGWidget should be the central view
         centralWidget_ = osgWidget;
-#if GEPETTO_GUI_HAS_PYTHONQT
-        pythonWidget_->addToContext("osg", centralWidget_);
-#endif
         connect(ui_->actionHome, SIGNAL (triggered()), centralWidget_, SLOT (onHome()));
         ui_->osgToolBar->show();
 
diff --git a/src/gui/pythonwidget.cc b/src/gui/pythonwidget.cc
index 8cc57aeea16af5ad0e57b421e30602d329f58fd3..7e67d333fbb6723b60d9b8fc57548d299de7e448 100644
--- a/src/gui/pythonwidget.cc
+++ b/src/gui/pythonwidget.cc
@@ -57,13 +57,10 @@ namespace gepetto {
         PythonQt::self()->registerCPPClass ("MainWindow", "QMainWindow", "gepetto");
         PythonQt::self()->registerCPPClass ("OSGWidget" , "QWidget"    , "gepetto");
 
-        mainContext.addObject("mainWindow", MainWindow::instance());
-        mainContext.addObject("windowsManager", MainWindow::instance()->osg().get());
         console_->QTextEdit::clear();
         console_->consoleMessage(
             "PythonQt command prompt\n"
             "Use Shift+Enter for multiline code.\n"
-            "Variable mainWindow and osg are available.\n"
             );
         console_->appendCommandPrompt();