diff --git a/bindings/pyroot/JupyROOT/cppcompleter.py b/bindings/pyroot/JupyROOT/cppcompleter.py
index d76fef839162ebf27978e563049984d19ff3a210..c3e81a5d443b36ce447c1c8c1eb8042c28cfbe28 100644
--- a/bindings/pyroot/JupyROOT/cppcompleter.py
+++ b/bindings/pyroot/JupyROOT/cppcompleter.py
@@ -35,7 +35,7 @@ class CppCompleter(object):
     >>> comp = CppCompleter()
     >>> comp.activate()
     >>> for suggestion in comp._completeImpl("TH1"):
-    ...     print suggestion
+    ...     print(suggestion)
     TH1
     TH1C
     TH1D
@@ -45,7 +45,7 @@ class CppCompleter(object):
     TH1K
     TH1S
     >>> for suggestion in comp._completeImpl("TH2"):
-    ...     print suggestion
+    ...     print(suggestion)
     TH2
     TH2C
     TH2D
@@ -58,20 +58,20 @@ class CppCompleter(object):
     TH2S
     >>> garbage = ROOT.gInterpreter.ProcessLine("TH1F* h")
     >>> for suggestion in comp._completeImpl("h->GetA"):
-    ...     print suggestion
+    ...     print(suggestion)
     h->GetArray
     h->GetAsymmetry
     h->GetAt
     h->GetAxisColor
     >>> garbage = ROOT.gInterpreter.ProcessLine("TH1F aa")
     >>> for suggestion in comp._completeImpl("aa.Add("):
-    ...     print suggestion.replace("\\t"," ")
+    ...     print(suggestion.replace("\\t"," "))
     <BLANKLINE>
     Bool_t Add(TF1* h1, Double_t c1 = 1, Option_t* option = "")
     Bool_t Add(const TH1* h, const TH1* h2, Double_t c1 = 1, Double_t c2 = 1)  // *MENU*
     Bool_t Add(const TH1* h1, Double_t c1 = 1)
     >>> for suggestion in comp._completeImpl("TROOT::Is"):
-    ...     print suggestion
+    ...     print(suggestion)
     IsA
     IsBatch
     IsEqual
@@ -89,7 +89,7 @@ class CppCompleter(object):
     IsZombie
     >>> comp.deactivate()
     >>> for suggestion in comp._completeImpl("TG"):
-    ...     print suggestion
+    ...     print(suggestion)
     '''
 
     def __init__(self):
diff --git a/bindings/pyroot/JupyROOT/handlers.py b/bindings/pyroot/JupyROOT/handlers.py
index a46c40454f752cd6ca69e39dfe14dc870f1fe5d6..ad780e3dc7690be9fc55f8a69c9fa5d24fc5cca6 100644
--- a/bindings/pyroot/JupyROOT/handlers.py
+++ b/bindings/pyroot/JupyROOT/handlers.py
@@ -65,7 +65,7 @@ class Runner(object):
     ''' Asynchrously run functions
     >>> import time
     >>> def f(code):
-    ...    print code
+    ...    print(code)
     >>> r= Runner(f)
     >>> r.Run("ss")
     ss
@@ -73,16 +73,16 @@ class Runner(object):
     ss
     >>> def g(msg):
     ...    time.sleep(.5)
-    ...    print msg
+    ...    print(msg)
     >>> r= Runner(g)
-    >>> r.AsyncRun("Asynchronous");print "Synchronous";time.sleep(1)
+    >>> r.AsyncRun("Asynchronous");print("Synchronous");time.sleep(1)
     Synchronous
     Asynchronous
-    >>> r.AsyncRun("Asynchronous"); print r.HasFinished()
+    >>> r.AsyncRun("Asynchronous"); print(r.HasFinished())
     False
     >>> time.sleep(1)
     Asynchronous
-    >>> print r.HasFinished()
+    >>> print(r.HasFinished())
     True
     '''
     def __init__(self, function):