try:
    from future_builtins import *
except ImportError:
    pass

try:
    input = raw_input
    range = xrange
except NameError:
    pass

try:
    string_types = basestring
except NameError:
    string_types = str
    
    
# This handles pprint always returns string witout ' prefix 
# important when running doctest in both python 2 og python 2
import pprint as _pprint
class MyPrettyPrinter(_pprint.PrettyPrinter):
    def format(self, object, context, maxlevels, level):
        try:
            if isinstance(object, unicode):
                rep = u"'"  + object + u"'"
                return ( rep.encode('utf8'), True, False)
        except NameError:
            pass
        return _pprint.PrettyPrinter.format(self, object, context, maxlevels, level)

def py3k_pprint(s):
    printer = MyPrettyPrinter(width = 110)
    printer.pprint(s)

@@ -1,16 +1,18 @@
+# 
 try:%0A   
  from fu
@@ -3,16 +3,18 @@
 try:%0A   
+ #
  from fu
@@ -17,17 +17,17 @@
 m future
-_
+.
 builtins
@@ -36,16 +36,18 @@
 mport *%0A
+# 
 except I
@@ -53,32 +53,34 @@
 ImportError:%0A   
+ #
  pass%0A%0Atry:%0A    

Remove all use of python-future package due to a bug which prevents the IPython notebook interrupt the program