THRIFT-284. python: Update tutorial files to use repr


git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@737424 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/tutorial/py/PythonServer.py b/tutorial/py/PythonServer.py
index 111c44e..d7fc89c 100755
--- a/tutorial/py/PythonServer.py
+++ b/tutorial/py/PythonServer.py
@@ -25,7 +25,7 @@
     return n1+n2
 
   def calculate(self, logid, work):
-    print 'calculate(%d, %s)' % (logid, work.__str__())
+    print 'calculate(%d, %r)' % (logid, work)
 
     if work.op == Operation.ADD:
       val = work.num1 + work.num2