diff --git a/test/message/testcfg.py b/test/message/testcfg.py
index 60e64e29f709a4..7183ab333d8274 100644
--- a/test/message/testcfg.py
+++ b/test/message/testcfg.py
@@ -27,7 +27,7 @@
 
 import test
 import os
-from os.path import join, dirname, exists, basename, isdir
+from os.path import join, exists, basename, isdir
 import re
 
 FLAGS_PATTERN = re.compile(r"//\s+Flags:(.*)")
diff --git a/test/testpy/__init__.py b/test/testpy/__init__.py
index b1f1519e91274b..9fff0b969c4952 100644
--- a/test/testpy/__init__.py
+++ b/test/testpy/__init__.py
@@ -27,9 +27,6 @@
 
 import test
 import os
-import shutil
-from os import mkdir
-from glob import glob
 from os.path import join, dirname, exists
 import re
 
diff --git a/test/timers/testcfg.py b/test/timers/testcfg.py
index a7c248fc0807d6..b766db16910cc5 100644
--- a/test/timers/testcfg.py
+++ b/test/timers/testcfg.py
@@ -27,11 +27,7 @@
 
 import test
 import os
-import shutil
-from shutil import rmtree
-from os import mkdir
-from glob import glob
-from os.path import join, dirname, exists
+from os.path import join, exists
 import re
 import shlex
 
diff --git a/tools/configure.d/nodedownload.py b/tools/configure.d/nodedownload.py
index e24efd865f3049..5cf8e0dbd690e1 100644
--- a/tools/configure.d/nodedownload.py
+++ b/tools/configure.d/nodedownload.py
@@ -35,7 +35,7 @@ def retrievefile(url, targetfile):
     try:
         sys.stdout.write(' <%s>\nConnecting...\r' % url)
         sys.stdout.flush()
-        msg = ConfigOpener().retrieve(url, targetfile, reporthook=reporthook)
+        ConfigOpener().retrieve(url, targetfile, reporthook=reporthook)
         print ''  # clear the line
         return targetfile
     except:
diff --git a/tools/icu/shrink-icu-src.py b/tools/icu/shrink-icu-src.py
index 1760b4ff47aebc..4a5f06d4a3bec1 100644
--- a/tools/icu/shrink-icu-src.py
+++ b/tools/icu/shrink-icu-src.py
@@ -1,13 +1,9 @@
 #!/usr/bin/env python
 import optparse
 import os
-import pprint
 import re
-import shlex
-import subprocess
 import sys
 import shutil
-import string
 
 parser = optparse.OptionParser()
 
diff --git a/tools/specialize_node_d.py b/tools/specialize_node_d.py
index 0ee505ae9113e2..bb5ef5a57ce916 100755
--- a/tools/specialize_node_d.py
+++ b/tools/specialize_node_d.py
@@ -7,9 +7,7 @@
 #
 
 import re
-import subprocess
 import sys
-import errno
 
 if len(sys.argv) != 5:
   print "usage: specialize_node_d.py outfile src/node.d flavor arch"
diff --git a/tools/test.py b/tools/test.py
index 3efafd95481023..bfc47ab4c9e794 100755
--- a/tools/test.py
+++ b/tools/test.py
@@ -32,7 +32,6 @@
 import logging
 import optparse
 import os
-import platform
 import re
 import signal
 import subprocess