Use better idiom to sort keys.
diff --git a/Lib/token.py b/Lib/token.py
index 2257ebf..147536c 100755
--- a/Lib/token.py
+++ b/Lib/token.py
@@ -108,8 +108,7 @@
             name, val = match.group(1, 2)
             val = int(val)
             tokens[val] = name          # reverse so we can sort them...
-    keys = list(tokens.keys())
-    keys.sort()
+    keys = sorted(tokens.keys())
     # load the output skeleton from the target:
     try:
         fp = open(outFileName)