diff --git a/pykd/python/pymod.cpp b/pykd/python/pymod.cpp
index be10781..c02d8d6 100644
--- a/pykd/python/pymod.cpp
+++ b/pykd/python/pymod.cpp
@@ -135,9 +135,13 @@ BOOST_PYTHON_MODULE( pykd )
 
     // Python debug output console helper classes
     python::class_<DbgOut>( "dout", "dout", python::no_init )
-        .def( "write", &DbgOut::write );
-    python::class_<DbgErr>( "dout", "dout", python::no_init )
-        .def( "write", &DbgErr::write );
+        .def( "write", &DbgOut::write )
+        .def( "flush", &DbgOut::flush )
+        .add_property( "encoding", &DbgOut::encoding );
+    python::class_<DbgErr>( "derr", "derr", python::no_init )
+        .def( "write", &DbgErr::write )
+        .def( "flush", &DbgOut::flush )
+        .add_property( "encoding", &DbgErr::encoding );
     python::class_<DbgIn>( "din", "din", python::no_init )
         .def( "readline", &DbgIn::readline )
         .add_property( "encoding", &DbgIn::encoding );
diff --git a/pykd/win/dbgio.h b/pykd/win/dbgio.h
index b5f412d..121b143 100644
--- a/pykd/win/dbgio.h
+++ b/pykd/win/dbgio.h
@@ -17,6 +17,13 @@ public:
         dprint( str );
     }
 
+    void flush() {
+    }
+
+    std::string
+    encoding() {
+        return "ascii";
+    }
 };
 
 ///////////////////////////////////////////////////////////////////////////////
@@ -30,6 +37,14 @@ public:
     {
         eprint( str );
     }
+
+    void flush() {
+    }
+
+    std::string
+    encoding() {
+        return "ascii";
+    }
 };
 
 ///////////////////////////////////////////////////////////////////////////////
diff --git a/snippets/ipython.py b/snippets/ipython.py
index e07ac04..630890f 100644
--- a/snippets/ipython.py
+++ b/snippets/ipython.py
@@ -1,14 +1,20 @@
 from IPython.config.loader import Config
 from IPython.terminal.embed import InteractiveShellEmbed
-from pykd import *
+
+from IPython.terminal.interactiveshell import TerminalInteractiveShell
+
+import pykd
 
 cfg = Config()
 
 cfg.InteractiveShell.colors = 'NoColor'
+cfg.InteractiveShell.readline_use = False
+cfg.InteractiveShell.autoindent = True
+
 cfg.PromptManager.in_template = 'In <\\#>: '
 cfg.PromptManager.in2_template = '   .\\D.: '
 cfg.PromptManager.out_template = 'Out<\\#>: '
 
 ipshell = InteractiveShellEmbed(config=cfg)
 
-ipshell()
+ipshell()    
\ No newline at end of file