Ran 2to3 over scripts directory.
diff --git a/Tools/scripts/parseentities.py b/Tools/scripts/parseentities.py
index cf4e17c..8d93167 100755
--- a/Tools/scripts/parseentities.py
+++ b/Tools/scripts/parseentities.py
@@ -35,9 +35,8 @@
 def writefile(f,defs):
 
     f.write("entitydefs = {\n")
-    items = defs.items()
-    items.sort()
-    for name,(charcode,comment) in items:
+    items = sorted(defs.items())
+    for name, (charcode,comment) in items:
         if charcode[:2] == '&#':
             code = int(charcode[2:-1])
             if code < 256: