No need to import sys.  (Andrew Dalke & kjpylint)
diff --git a/Lib/htmllib.py b/Lib/htmllib.py
index 77be470..9cf962c 100644
--- a/Lib/htmllib.py
+++ b/Lib/htmllib.py
@@ -5,7 +5,6 @@
 """
 
 
-import sys
 import string
 from sgmllib import SGMLParser
 from formatter import AS_IS
diff --git a/Lib/pty.py b/Lib/pty.py
index 53a4b2d..2ba1938 100644
--- a/Lib/pty.py
+++ b/Lib/pty.py
@@ -7,7 +7,7 @@
 # Author: Steen Lumholt -- with additions by Guido.
 
 from select import select
-import os, sys, FCNTL
+import os, FCNTL
 import tty
 
 STDIN_FILENO = 0