Make script 2-vs-3-agnostic.
diff --git a/Objects/typeslots.py b/Objects/typeslots.py
index bcc3196..0e6ef1f 100644
--- a/Objects/typeslots.py
+++ b/Objects/typeslots.py
@@ -21,4 +21,4 @@
 
 M = max(res.keys())+1
 for i in range(1,M):
-    print "offsetof(PyHeapTypeObject, %s)," % res[i]
+    print("offsetof(PyHeapTypeObject, %s)," % res[i])