support python-3 with the queue module

This doesn't really impact us today, but I'm trying to use this module
in other projects, and those want python-3 compatibility.

Applied same fix as the parallel module to the others.

BUG=None
TEST=`./run_tests` pass

Change-Id: I90698f86e9d9fb37be9d862272dee4327fd3081c
Reviewed-on: https://chromium-review.googlesource.com/173810
Reviewed-by: David James <davidjames@chromium.org>
Tested-by: Mike Frysinger <vapier@chromium.org>
Commit-Queue: Mike Frysinger <vapier@chromium.org>
diff --git a/scripts/parallel_emerge.py b/scripts/parallel_emerge.py
index f536b18..773c582 100644
--- a/scripts/parallel_emerge.py
+++ b/scripts/parallel_emerge.py
@@ -21,7 +21,13 @@
 import heapq
 import multiprocessing
 import os
-import Queue
+try:
+  import Queue
+except ImportError:
+  # Python-3 renamed to "queue".  We still use Queue to avoid collisions
+  # with naming variables as "queue".  Maybe we'll transition at some point.
+  # pylint: disable=F0401
+  import queue as Queue
 import signal
 import sys
 import tempfile