[autotest] change python shebang to python2

Make sure all these scripts run as Python 2 since there is no support
for Python 3 in this code base.  This allows us to change the default
`python` to Python 3.

BUG=chromium:990593
TEST=CQ passes

Exempt-From-Owner-Approval: everyone has chimed in
Change-Id: I05321d92696f4550ced0741ead5023c8ec43c1e7
Reviewed-on: https://chromium-review.googlesource.com/1734588
Tested-by: Mike Frysinger <vapier@chromium.org>
Commit-Ready: ChromeOS CL Exonerator Bot <chromiumos-cl-exonerator@appspot.gserviceaccount.com>
Legacy-Commit-Queue: Commit Bot <commit-bot@chromium.org>
Reviewed-by: Vadim Bendebury <vbendeb@chromium.org>
Reviewed-by: Allen Li <ayatane@chromium.org>
diff --git a/cli/acl_unittest.py b/cli/acl_unittest.py
index 2d7c887..633d23e 100755
--- a/cli/acl_unittest.py
+++ b/cli/acl_unittest.py
@@ -1,5 +1,5 @@
+#!/usr/bin/python2
 # pylint: disable-msg=C0111
-#!/usr/bin/python
 #
 # Copyright 2008 Google Inc. All Rights Reserved.
 
diff --git a/cli/action_common_unittest.py b/cli/action_common_unittest.py
index 4d82e3f..be399a9 100755
--- a/cli/action_common_unittest.py
+++ b/cli/action_common_unittest.py
@@ -1,5 +1,5 @@
+#!/usr/bin/python2
 # pylint: disable-msg=C0111
-#!/usr/bin/python
 #
 # Copyright 2008 Google Inc. All Rights Reserved.
 
diff --git a/cli/atest_migrate_host b/cli/atest_migrate_host
index c48e3f8..6773304 100755
--- a/cli/atest_migrate_host
+++ b/cli/atest_migrate_host
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 # Copyright Google, Martin J. Bligh <mbligh@google.com>, Jan 2009
 import os, sys
 import common
diff --git a/cli/atest_unittest.py b/cli/atest_unittest.py
index 96d8fa1..47641a7 100755
--- a/cli/atest_unittest.py
+++ b/cli/atest_unittest.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 #
 # Copyright 2008 Google Inc. All Rights Reserved.
 
diff --git a/cli/change_protection_level.py b/cli/change_protection_level.py
index 0e6598d..ce9b597 100755
--- a/cli/change_protection_level.py
+++ b/cli/change_protection_level.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 
 # change_protection_level.py "No protection" machine1 machine2 machine3
 
diff --git a/cli/compose_query b/cli/compose_query
index 1586354..8d46a5b 100755
--- a/cli/compose_query
+++ b/cli/compose_query
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 """
 Selects all rows and columns that satisfy the condition specified
 and prints the matrix.
diff --git a/cli/fair_partition_unittest.py b/cli/fair_partition_unittest.py
index f44f166..6f120f2 100644
--- a/cli/fair_partition_unittest.py
+++ b/cli/fair_partition_unittest.py
@@ -1,5 +1,5 @@
+#!/usr/bin/python2
 # pylint: disable-msg=C0111
-#!/usr/bin/python
 #
 # Copyright 2008 Google Inc. All Rights Reserved.
 """Test for skylab json utils."""
diff --git a/cli/host_unittest.py b/cli/host_unittest.py
index f7a3698e..ac666a8 100755
--- a/cli/host_unittest.py
+++ b/cli/host_unittest.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 #
 # Copyright 2008 Google Inc. All Rights Reserved.
 
diff --git a/cli/label_unittest.py b/cli/label_unittest.py
index 92ac8c5..bbe81ae 100755
--- a/cli/label_unittest.py
+++ b/cli/label_unittest.py
@@ -1,5 +1,5 @@
+#!/usr/bin/python2
 # pylint: disable-msg=C0111
-#!/usr/bin/python
 #
 # Copyright 2008 Google Inc. All Rights Reserved.
 
diff --git a/cli/query_keyvals b/cli/query_keyvals
index e8e7503..319119e 100755
--- a/cli/query_keyvals
+++ b/cli/query_keyvals
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 
 import sys, optparse
 import common
diff --git a/cli/query_results b/cli/query_results
index 4ffef26..aaac256 100755
--- a/cli/query_results
+++ b/cli/query_results
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 """
 Selects all rows and columns that satisfy the condition specified
 and prints the matrix.
diff --git a/cli/rpc_unittest.py b/cli/rpc_unittest.py
index 0e87e4d..0f602c4 100755
--- a/cli/rpc_unittest.py
+++ b/cli/rpc_unittest.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 #
 # Copyright 2008 Google Inc. All Rights Reserved.
 
diff --git a/cli/skylab_json_utils_unittest.py b/cli/skylab_json_utils_unittest.py
index dc52979..bd19f07 100755
--- a/cli/skylab_json_utils_unittest.py
+++ b/cli/skylab_json_utils_unittest.py
@@ -1,5 +1,5 @@
+#!/usr/bin/python2
 # pylint: disable-msg=C0111
-#!/usr/bin/python
 #
 # Copyright 2019 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
diff --git a/cli/skylab_migration.py b/cli/skylab_migration.py
index 6f8617e..0f8fd97 100644
--- a/cli/skylab_migration.py
+++ b/cli/skylab_migration.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
 # Copyright 2019 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
 # found in the LICENSE file
diff --git a/cli/skylab_migration_unittest.py b/cli/skylab_migration_unittest.py
index 1241c3f..dc88177 100644
--- a/cli/skylab_migration_unittest.py
+++ b/cli/skylab_migration_unittest.py
@@ -1,5 +1,5 @@
+#!/usr/bin/python2
 # pylint: disable-msg=C0111
-#!/usr/bin/python
 #
 # Copyright 2019 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
diff --git a/cli/test_unittest.py b/cli/test_unittest.py
index c65e239..d02c39a 100755
--- a/cli/test_unittest.py
+++ b/cli/test_unittest.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 #
 # Copyright 2008 Google Inc. All Rights Reserved.
 
diff --git a/cli/topic_common_unittest.py b/cli/topic_common_unittest.py
index 644f44f..fc372e6 100755
--- a/cli/topic_common_unittest.py
+++ b/cli/topic_common_unittest.py
@@ -1,5 +1,5 @@
+#!/usr/bin/python2
 # pylint: disable-msg=C0111
-#!/usr/bin/python
 #
 # Copyright 2008 Google Inc. All Rights Reserved.
 
diff --git a/cli/user_unittest.py b/cli/user_unittest.py
index a871b26..f5897ee 100755
--- a/cli/user_unittest.py
+++ b/cli/user_unittest.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 #
 # Copyright 2008 Google Inc. All Rights Reserved.
 
diff --git a/client/bin/autologin.py b/client/bin/autologin.py
index d09e002..bc7b600 100755
--- a/client/bin/autologin.py
+++ b/client/bin/autologin.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 #
 # Copyright 2016 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
diff --git a/client/bin/autotest_client b/client/bin/autotest_client
index 46f9a71..5424281 100755
--- a/client/bin/autotest_client
+++ b/client/bin/autotest_client
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 import common
 
 import sys, os, time, subprocess
diff --git a/client/bin/autotestd b/client/bin/autotestd
index 3d4552a..77b7100 100755
--- a/client/bin/autotestd
+++ b/client/bin/autotestd
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 
 import common
 import sys, os, subprocess, fcntl
diff --git a/client/bin/autotestd_monitor b/client/bin/autotestd_monitor
index a94c966..4d4d5d7 100755
--- a/client/bin/autotestd_monitor
+++ b/client/bin/autotestd_monitor
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 
 import common
 import sys, os, signal, time, subprocess, fcntl
diff --git a/client/bin/fps_meter.py b/client/bin/fps_meter.py
index dbe20ea..5bbe87f 100755
--- a/client/bin/fps_meter.py
+++ b/client/bin/fps_meter.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 # Copyright 2018 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
 # found in the LICENSE file.
diff --git a/client/bin/fsinfo_unittest.py b/client/bin/fsinfo_unittest.py
index ad7ae23..c414d63 100755
--- a/client/bin/fsinfo_unittest.py
+++ b/client/bin/fsinfo_unittest.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 
 import unittest, StringIO
 import common
diff --git a/client/bin/harness_unittest.py b/client/bin/harness_unittest.py
index 8a6f2b4..a80a720 100755
--- a/client/bin/harness_unittest.py
+++ b/client/bin/harness_unittest.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 # pylint: disable=missing-docstring
 
 import unittest
diff --git a/client/bin/input/input_device.py b/client/bin/input/input_device.py
index 3fd06c6..49127d3 100755
--- a/client/bin/input/input_device.py
+++ b/client/bin/input/input_device.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
 # Copyright (c) 2011 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
 # found in the LICENSE file.
diff --git a/client/bin/input/input_event_player.py b/client/bin/input/input_event_player.py
index c856ef1..a93c1d7 100755
--- a/client/bin/input/input_event_player.py
+++ b/client/bin/input/input_event_player.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
 # Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
 # found in the LICENSE file.
diff --git a/client/bin/job_unittest.py b/client/bin/job_unittest.py
index 3fed421..0dfe0cd 100755
--- a/client/bin/job_unittest.py
+++ b/client/bin/job_unittest.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 # pylint: disable=missing-docstring
 
 import logging
diff --git a/client/bin/kernel_versions_unittest.py b/client/bin/kernel_versions_unittest.py
index e59314e..2b6d88a 100755
--- a/client/bin/kernel_versions_unittest.py
+++ b/client/bin/kernel_versions_unittest.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 import unittest
 import common
 from autotest_lib.client.bin import kernel_versions
diff --git a/client/bin/local_host_unittest.py b/client/bin/local_host_unittest.py
index f5bc5f5..db578c7 100755
--- a/client/bin/local_host_unittest.py
+++ b/client/bin/local_host_unittest.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 
 import mock
 import os
diff --git a/client/bin/net/net_tc_unittest.py b/client/bin/net/net_tc_unittest.py
index 576a2de..a01e3f7 100755
--- a/client/bin/net/net_tc_unittest.py
+++ b/client/bin/net/net_tc_unittest.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 
 # TODO(chavey) complete all the unit test in this file
 
diff --git a/client/bin/net/net_utils_unittest.py b/client/bin/net/net_utils_unittest.py
index ca8a61a..f6a46a3 100755
--- a/client/bin/net/net_utils_unittest.py
+++ b/client/bin/net/net_utils_unittest.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 import unittest, os, socket, time, sys, struct
 import common
 from autotest_lib.client.bin import utils
diff --git a/client/bin/package_unittest.py b/client/bin/package_unittest.py
index 28f7278..6da4836 100755
--- a/client/bin/package_unittest.py
+++ b/client/bin/package_unittest.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 
 
 import unittest, os
diff --git a/client/bin/partition_unittest.py b/client/bin/partition_unittest.py
index 6fb01d7..d3fcf2b 100755
--- a/client/bin/partition_unittest.py
+++ b/client/bin/partition_unittest.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 
 """Tests for autotest_lib.client.bin.partition."""
 
diff --git a/client/bin/result_tools/result_info_unittest.py b/client/bin/result_tools/result_info_unittest.py
index 7820760..5ebb610 100644
--- a/client/bin/result_tools/result_info_unittest.py
+++ b/client/bin/result_tools/result_info_unittest.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 # Copyright 2017 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
 # found in the LICENSE file.
diff --git a/client/bin/result_tools/utils.py b/client/bin/result_tools/utils.py
index e2abe0c..e798fc7 100755
--- a/client/bin/result_tools/utils.py
+++ b/client/bin/result_tools/utils.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 # Copyright 2017 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
 # found in the LICENSE file.
diff --git a/client/bin/result_tools/utils_lib_unittest.py b/client/bin/result_tools/utils_lib_unittest.py
index bc5b4c3..9c1fc9f 100644
--- a/client/bin/result_tools/utils_lib_unittest.py
+++ b/client/bin/result_tools/utils_lib_unittest.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 # Copyright 2017 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
 # found in the LICENSE file.
diff --git a/client/bin/result_tools/utils_unittest.py b/client/bin/result_tools/utils_unittest.py
index 3cfbadc..e65ca2b 100644
--- a/client/bin/result_tools/utils_unittest.py
+++ b/client/bin/result_tools/utils_unittest.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 # Copyright 2017 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
 # found in the LICENSE file.
diff --git a/client/bin/self-test/extract_tarball_to_dir b/client/bin/self-test/extract_tarball_to_dir
index dd7505d..918df2f 100755
--- a/client/bin/self-test/extract_tarball_to_dir
+++ b/client/bin/self-test/extract_tarball_to_dir
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 import sys, os, os.path
 
 autodir = os.environ['AUTODIR']
diff --git a/client/bin/self-test/test_redirect b/client/bin/self-test/test_redirect
index ab5f189..12ea604 100755
--- a/client/bin/self-test/test_redirect
+++ b/client/bin/self-test/test_redirect
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 import os
 
 stdout = fd_stack(1, sys.stdout)
diff --git a/client/bin/setup_job_unittest.py b/client/bin/setup_job_unittest.py
index 1037a5f..2185b5d 100755
--- a/client/bin/setup_job_unittest.py
+++ b/client/bin/setup_job_unittest.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 #pylint: disable-msg=C0111
 import logging
 import os
diff --git a/client/bin/site_sysinfo_unittest.py b/client/bin/site_sysinfo_unittest.py
index 9f0acf5..e1a2cd4 100644
--- a/client/bin/site_sysinfo_unittest.py
+++ b/client/bin/site_sysinfo_unittest.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 
 """Tests for site_sysinfo."""
 
diff --git a/client/bin/telemetry_sanity.py b/client/bin/telemetry_sanity.py
index a04263c..3a5e7e5 100755
--- a/client/bin/telemetry_sanity.py
+++ b/client/bin/telemetry_sanity.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 #
 # Copyright 2016 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
diff --git a/client/bin/temperature.py b/client/bin/temperature.py
index 7f3dc30..6ae1ca4 100755
--- a/client/bin/temperature.py
+++ b/client/bin/temperature.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
 
 import argparse
 
diff --git a/client/bin/update_intel_pci_ids b/client/bin/update_intel_pci_ids
index ed45c21..2beb094 100755
--- a/client/bin/update_intel_pci_ids
+++ b/client/bin/update_intel_pci_ids
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
 # Copyright 2015 The Chromium Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
 # found in the LICENSE file.
diff --git a/client/bin/utils_unittest.py b/client/bin/utils_unittest.py
index 0cad380..ddafd84 100755
--- a/client/bin/utils_unittest.py
+++ b/client/bin/utils_unittest.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 
 __author__ = "kerl@google.com, gwendal@google.com (Gwendal Grignou)"
 
diff --git a/client/common_lib/autotemp_unittest.py b/client/common_lib/autotemp_unittest.py
index 9a84c48..d044618 100755
--- a/client/common_lib/autotemp_unittest.py
+++ b/client/common_lib/autotemp_unittest.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 
 import unittest, os
 import common
diff --git a/client/common_lib/barrier_unittest.py b/client/common_lib/barrier_unittest.py
index 8f56991..7eaca0a 100755
--- a/client/common_lib/barrier_unittest.py
+++ b/client/common_lib/barrier_unittest.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 
 __author__ = """Ashwin Ganti (aganti@google.com)"""
 
diff --git a/client/common_lib/base_job_unittest.py b/client/common_lib/base_job_unittest.py
index d51e96b..6712608 100755
--- a/client/common_lib/base_job_unittest.py
+++ b/client/common_lib/base_job_unittest.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 
 # pylint: disable=missing-docstring
 
diff --git a/client/common_lib/control_data_unittest.py b/client/common_lib/control_data_unittest.py
index d3a0c8f..804bdb5 100755
--- a/client/common_lib/control_data_unittest.py
+++ b/client/common_lib/control_data_unittest.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 # pylint: disable-msg=C0111
 
 import json
diff --git a/client/common_lib/cros/adb_keepalive.py b/client/common_lib/cros/adb_keepalive.py
index 3a7d1d3..cb27fbc 100755
--- a/client/common_lib/cros/adb_keepalive.py
+++ b/client/common_lib/cros/adb_keepalive.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 
 # Copyright 2017 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
diff --git a/client/common_lib/cros/dbus_send_unittest.py b/client/common_lib/cros/dbus_send_unittest.py
index 6bfafcb..ce2bc61 100755
--- a/client/common_lib/cros/dbus_send_unittest.py
+++ b/client/common_lib/cros/dbus_send_unittest.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 #
 # Copyright 2015 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
diff --git a/client/common_lib/cros/dev_server_unittest.py b/client/common_lib/cros/dev_server_unittest.py
index e97ae30..d67cd5b 100755
--- a/client/common_lib/cros/dev_server_unittest.py
+++ b/client/common_lib/cros/dev_server_unittest.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 #
 # Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
diff --git a/client/common_lib/cros/interactive_xmlrpc_server.py b/client/common_lib/cros/interactive_xmlrpc_server.py
index 7e385ca..f5f2534 100755
--- a/client/common_lib/cros/interactive_xmlrpc_server.py
+++ b/client/common_lib/cros/interactive_xmlrpc_server.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
 
 # Copyright (c) 2013 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
diff --git a/client/common_lib/cros/memory_eater.py b/client/common_lib/cros/memory_eater.py
index 59d2269..fd56e10 100644
--- a/client/common_lib/cros/memory_eater.py
+++ b/client/common_lib/cros/memory_eater.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 # Copyright 2018 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
 # found in the LICENSE file.
diff --git a/client/common_lib/cros/network/iw_runner_unittest.py b/client/common_lib/cros/network/iw_runner_unittest.py
index f38bdc9..bf6834d 100755
--- a/client/common_lib/cros/network/iw_runner_unittest.py
+++ b/client/common_lib/cros/network/iw_runner_unittest.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 #
 # Copyright (c) 2013 The Chromium Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
diff --git a/client/common_lib/cros/power_cycle_usb_util_unittest.py b/client/common_lib/cros/power_cycle_usb_util_unittest.py
index af3ec10..ee64147 100755
--- a/client/common_lib/cros/power_cycle_usb_util_unittest.py
+++ b/client/common_lib/cros/power_cycle_usb_util_unittest.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 # Copyright 2017 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
 # found in the LICENSE file.
diff --git a/client/common_lib/cros/retry_unittest.py b/client/common_lib/cros/retry_unittest.py
index 4d9987f..0282102 100755
--- a/client/common_lib/cros/retry_unittest.py
+++ b/client/common_lib/cros/retry_unittest.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
 
 # Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
diff --git a/client/common_lib/cros/string_utils_unittest.py b/client/common_lib/cros/string_utils_unittest.py
index 3d812d7..aa200d8 100755
--- a/client/common_lib/cros/string_utils_unittest.py
+++ b/client/common_lib/cros/string_utils_unittest.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 # -*- coding: utf-8 -*-
 # Copyright 2018 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
diff --git a/client/common_lib/cros/textfsm.py b/client/common_lib/cros/textfsm.py
index 2ba1d82..ffad097 100644
--- a/client/common_lib/cros/textfsm.py
+++ b/client/common_lib/cros/textfsm.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 #
 # Copyright 2010 Google Inc. All Rights Reserved.
 #
diff --git a/client/common_lib/decorators_unittest.py b/client/common_lib/decorators_unittest.py
index e80a043..2d44344 100644
--- a/client/common_lib/decorators_unittest.py
+++ b/client/common_lib/decorators_unittest.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
 # Copyright (c) 2013 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
 # found in the LICENSE file.
diff --git a/client/common_lib/global_config_unittest.py b/client/common_lib/global_config_unittest.py
index cb472ef..c8279e9 100755
--- a/client/common_lib/global_config_unittest.py
+++ b/client/common_lib/global_config_unittest.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 
 import collections
 import os
diff --git a/client/common_lib/hosts/base_classes_unittest.py b/client/common_lib/hosts/base_classes_unittest.py
index bff9aad..9b773e6 100755
--- a/client/common_lib/hosts/base_classes_unittest.py
+++ b/client/common_lib/hosts/base_classes_unittest.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 
 import common
 import os
diff --git a/client/common_lib/logging_manager_test.py b/client/common_lib/logging_manager_test.py
index 5c0e82f..b17d413 100755
--- a/client/common_lib/logging_manager_test.py
+++ b/client/common_lib/logging_manager_test.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 
 import logging, os, select, StringIO, subprocess, sys, unittest
 import common
diff --git a/client/common_lib/magic.py b/client/common_lib/magic.py
index 6f98f34..a087ae5 100755
--- a/client/common_lib/magic.py
+++ b/client/common_lib/magic.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 """
 Library used to determine a file MIME type by its magic number, it doesn't have
 any external dependencies. Based on work of Jason Petrone (jp_py@jsnp.net),
diff --git a/client/common_lib/mail_unittest.py b/client/common_lib/mail_unittest.py
index e9ad115..ba13c92 100755
--- a/client/common_lib/mail_unittest.py
+++ b/client/common_lib/mail_unittest.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 
 import unittest
 import mail, email
diff --git a/client/common_lib/profiler_manager_unittest.py b/client/common_lib/profiler_manager_unittest.py
index 7885254..7c5b2b4 100755
--- a/client/common_lib/profiler_manager_unittest.py
+++ b/client/common_lib/profiler_manager_unittest.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 
 import unittest
 import common
diff --git a/client/common_lib/software_manager.py b/client/common_lib/software_manager.py
index f67f667..a85b9ad 100755
--- a/client/common_lib/software_manager.py
+++ b/client/common_lib/software_manager.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 """
 Software package management library.
 
diff --git a/client/common_lib/test_unittest.py b/client/common_lib/test_unittest.py
index 3eada90..a0491d1 100755
--- a/client/common_lib/test_unittest.py
+++ b/client/common_lib/test_unittest.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 #pylint: disable-msg=C0111
 """Unit Tests for autotest.client.common_lib.test"""
 
diff --git a/client/common_lib/test_utils/mock_demo.py b/client/common_lib/test_utils/mock_demo.py
index f01fe60..71c27c9 100755
--- a/client/common_lib/test_utils/mock_demo.py
+++ b/client/common_lib/test_utils/mock_demo.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 
 __author__ = "raphtee@google.com (Travis Miller)"
 
diff --git a/client/common_lib/utils_unittest.py b/client/common_lib/utils_unittest.py
index fb010e3..4d71d69 100755
--- a/client/common_lib/utils_unittest.py
+++ b/client/common_lib/utils_unittest.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 
 # pylint: disable=missing-docstring
 
diff --git a/client/cros/audio/audio_analysis_unittest.py b/client/cros/audio/audio_analysis_unittest.py
index 6b62200..38f6f61 100755
--- a/client/cros/audio/audio_analysis_unittest.py
+++ b/client/cros/audio/audio_analysis_unittest.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 import logging
 import numpy
 import os
diff --git a/client/cros/audio/audio_data.py b/client/cros/audio/audio_data.py
index c0e296c..553e5d4 100644
--- a/client/cros/audio/audio_data.py
+++ b/client/cros/audio/audio_data.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
 # Copyright 2014 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
 # found in the LICENSE file.
diff --git a/client/cros/audio/audio_helper.py b/client/cros/audio/audio_helper.py
index 5fc6fcf..c9ba69a 100644
--- a/client/cros/audio/audio_helper.py
+++ b/client/cros/audio/audio_helper.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 # Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
 # found in the LICENSE file.
diff --git a/client/cros/audio/audio_quality_measurement_unittest.py b/client/cros/audio/audio_quality_measurement_unittest.py
index 42ec71b..19b3ed2 100755
--- a/client/cros/audio/audio_quality_measurement_unittest.py
+++ b/client/cros/audio/audio_quality_measurement_unittest.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
 # Copyright 2016 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
 # found in the LICENSE file.
diff --git a/client/cros/audio/audio_test_data.py b/client/cros/audio/audio_test_data.py
index be54f7b..318d60e 100644
--- a/client/cros/audio/audio_test_data.py
+++ b/client/cros/audio/audio_test_data.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
 # Copyright 2014 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
 # found in the LICENSE file.
diff --git a/client/cros/audio/check_quality.py b/client/cros/audio/check_quality.py
index 3a206f9..52ce1c0 100755
--- a/client/cros/audio/check_quality.py
+++ b/client/cros/audio/check_quality.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 
 # Copyright 2016 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
diff --git a/client/cros/audio/cmd_utils.py b/client/cros/audio/cmd_utils.py
index aed4385..901d367 100644
--- a/client/cros/audio/cmd_utils.py
+++ b/client/cros/audio/cmd_utils.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 # Copyright (c) 2013 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
 # found in the LICENSE file.
diff --git a/client/cros/audio/pack_audio_quality.py b/client/cros/audio/pack_audio_quality.py
index 2b90894..ba0cafe 100755
--- a/client/cros/audio/pack_audio_quality.py
+++ b/client/cros/audio/pack_audio_quality.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 
 # Copyright 2017 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
diff --git a/client/cros/bluetooth/bluetooth_device_xmlrpc_server.py b/client/cros/bluetooth/bluetooth_device_xmlrpc_server.py
index fe6735d..2394e9c 100755
--- a/client/cros/bluetooth/bluetooth_device_xmlrpc_server.py
+++ b/client/cros/bluetooth/bluetooth_device_xmlrpc_server.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
 
 # Copyright (c) 2013 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
diff --git a/client/cros/bluetooth/bluetooth_tester_xmlrpc_server.py b/client/cros/bluetooth/bluetooth_tester_xmlrpc_server.py
index cc4bee4..748542e 100755
--- a/client/cros/bluetooth/bluetooth_tester_xmlrpc_server.py
+++ b/client/cros/bluetooth/bluetooth_tester_xmlrpc_server.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
 
 # Copyright (c) 2013 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
diff --git a/client/cros/cellular/cellular_logging.py b/client/cros/cellular/cellular_logging.py
index e0b23c5..da5c386 100644
--- a/client/cros/cellular/cellular_logging.py
+++ b/client/cros/cellular/cellular_logging.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 # Copyright (c) 2013 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
 # found in the LICENSE file.
diff --git a/client/cros/cellular/ether_io_rf_switch.py b/client/cros/cellular/ether_io_rf_switch.py
index df44b08..a674ee1 100755
--- a/client/cros/cellular/ether_io_rf_switch.py
+++ b/client/cros/cellular/ether_io_rf_switch.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 # Copyright (c) 2011 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
 # found in the LICENSE file.
diff --git a/client/cros/cellular/forward_8960_screen b/client/cros/cellular/forward_8960_screen
index 7590d1b..59cc5da 100755
--- a/client/cros/cellular/forward_8960_screen
+++ b/client/cros/cellular/forward_8960_screen
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 
 # Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
diff --git a/client/cros/cellular/labconfig_data.py b/client/cros/cellular/labconfig_data.py
index 2e1aa03..49f1c45 100755
--- a/client/cros/cellular/labconfig_data.py
+++ b/client/cros/cellular/labconfig_data.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 # Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
 # found in the LICENSE file.
diff --git a/client/cros/cellular/labconfig_test.py b/client/cros/cellular/labconfig_test.py
index ce070cd..8922616 100755
--- a/client/cros/cellular/labconfig_test.py
+++ b/client/cros/cellular/labconfig_test.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
 # Copyright (c) 2011 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
 # found in the LICENSE file.
diff --git a/client/cros/cellular/labconfig_write_stanzas b/client/cros/cellular/labconfig_write_stanzas
index 3532db2..bb19e7e 100755
--- a/client/cros/cellular/labconfig_write_stanzas
+++ b/client/cros/cellular/labconfig_write_stanzas
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 # Copyright (c) 2011 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
 # found in the LICENSE file.
diff --git a/client/cros/cellular/mm1.py b/client/cros/cellular/mm1.py
index 5f4ae60..2672e5c 100644
--- a/client/cros/cellular/mm1.py
+++ b/client/cros/cellular/mm1.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
 
 # Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
diff --git a/client/cros/cellular/mmtest.py b/client/cros/cellular/mmtest.py
index 7718445..8dce1ef 100644
--- a/client/cros/cellular/mmtest.py
+++ b/client/cros/cellular/mmtest.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 # Copyright (c) 2011 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
 # found in the LICENSE file.
diff --git a/client/cros/cellular/modem.py b/client/cros/cellular/modem.py
index 5b3c9b3..536dba1 100644
--- a/client/cros/cellular/modem.py
+++ b/client/cros/cellular/modem.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 # Copyright (c) 2013 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
 # found in the LICENSE file.
diff --git a/client/cros/cellular/modem1.py b/client/cros/cellular/modem1.py
index 3449113..63384af 100644
--- a/client/cros/cellular/modem1.py
+++ b/client/cros/cellular/modem1.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 # Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
 # found in the LICENSE file.
diff --git a/client/cros/cellular/prologix_scpi_driver.py b/client/cros/cellular/prologix_scpi_driver.py
index edd874f..005e66e 100644
--- a/client/cros/cellular/prologix_scpi_driver.py
+++ b/client/cros/cellular/prologix_scpi_driver.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 # Copyright (c) 2013 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
 # found in the LICENSE file.
diff --git a/client/cros/cellular/prologix_scpi_driver_test_noautorun.py b/client/cros/cellular/prologix_scpi_driver_test_noautorun.py
index 8bbc369..62f1a27 100644
--- a/client/cros/cellular/prologix_scpi_driver_test_noautorun.py
+++ b/client/cros/cellular/prologix_scpi_driver_test_noautorun.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 # Copyright (c) 2013 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
 # found in the LICENSE file.
diff --git a/client/cros/cellular/pseudo_modem.py b/client/cros/cellular/pseudo_modem.py
index 7fa2a0f..d4de0c9 100755
--- a/client/cros/cellular/pseudo_modem.py
+++ b/client/cros/cellular/pseudo_modem.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
 
 # Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
diff --git a/client/cros/cellular/pseudomodem/client.py b/client/cros/cellular/pseudomodem/client.py
index 8c183b1..519243d 100755
--- a/client/cros/cellular/pseudomodem/client.py
+++ b/client/cros/cellular/pseudomodem/client.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
 
 # Copyright (c) 2013 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
diff --git a/client/cros/cellular/pseudomodem/logging_setup.py b/client/cros/cellular/pseudomodem/logging_setup.py
index 524d447..c3e186e 100644
--- a/client/cros/cellular/pseudomodem/logging_setup.py
+++ b/client/cros/cellular/pseudomodem/logging_setup.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
 # Copyright (c) 2014 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
 # found in the LICENSE file.
diff --git a/client/cros/cellular/pseudomodem/pseudomodem.py b/client/cros/cellular/pseudomodem/pseudomodem.py
index f16d102..6470cfa 100755
--- a/client/cros/cellular/pseudomodem/pseudomodem.py
+++ b/client/cros/cellular/pseudomodem/pseudomodem.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
 # Copyright (c) 2014 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
 # found in the LICENSE file.
diff --git a/client/cros/cellular/pseudomodem/run_pseudomodem.py b/client/cros/cellular/pseudomodem/run_pseudomodem.py
index 29ba9f7..822c526 100755
--- a/client/cros/cellular/pseudomodem/run_pseudomodem.py
+++ b/client/cros/cellular/pseudomodem/run_pseudomodem.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
 # Copyright (c) 2014 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
 # found in the LICENSE file.
diff --git a/client/cros/cellular/pseudomodem/utils.py b/client/cros/cellular/pseudomodem/utils.py
index de5f83a..7584982 100644
--- a/client/cros/cellular/pseudomodem/utils.py
+++ b/client/cros/cellular/pseudomodem/utils.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
 
 # Copyright (c) 2013 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
diff --git a/client/cros/cellular/scpi.py b/client/cros/cellular/scpi.py
index daa499c..6cbe41c 100644
--- a/client/cros/cellular/scpi.py
+++ b/client/cros/cellular/scpi.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 # Copyright (c) 2013 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
 # found in the LICENSE file.
diff --git a/client/cros/cellular/scpi_shell b/client/cros/cellular/scpi_shell
index 2988f91..83ee800 100755
--- a/client/cros/cellular/scpi_shell
+++ b/client/cros/cellular/scpi_shell
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 # Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
 # found in the LICENSE file.
diff --git a/client/cros/cellular/sms.py b/client/cros/cellular/sms.py
index e40e95c..f1996e7 100644
--- a/client/cros/cellular/sms.py
+++ b/client/cros/cellular/sms.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 # Copyright (c) 2011 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
 # found in the LICENSE file.
diff --git a/client/cros/cellular/test_endpoint.py b/client/cros/cellular/test_endpoint.py
index a3c6bf5..dfc86f9 100755
--- a/client/cros/cellular/test_endpoint.py
+++ b/client/cros/cellular/test_endpoint.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
 
 # Copyright (c) 2013 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
diff --git a/client/cros/dark_resume_xmlrpc_server.py b/client/cros/dark_resume_xmlrpc_server.py
index ada8acf..05349fc 100755
--- a/client/cros/dark_resume_xmlrpc_server.py
+++ b/client/cros/dark_resume_xmlrpc_server.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 
 # Copyright 2015 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
diff --git a/client/cros/dhcp_unittest.py b/client/cros/dhcp_unittest.py
index f0b0c72..edc70d1 100755
--- a/client/cros/dhcp_unittest.py
+++ b/client/cros/dhcp_unittest.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 
 # Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
diff --git a/client/cros/faft/utils/flashrom_handler.py b/client/cros/faft/utils/flashrom_handler.py
index a3e4b4d..94c03cb 100644
--- a/client/cros/faft/utils/flashrom_handler.py
+++ b/client/cros/faft/utils/flashrom_handler.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
 # found in the LICENSE file.
diff --git a/client/cros/gpio.py b/client/cros/gpio.py
index 754dfb4..3afe4aa 100644
--- a/client/cros/gpio.py
+++ b/client/cros/gpio.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
 # Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
 # found in the LICENSE file.
diff --git a/client/cros/httpd_unittest.py b/client/cros/httpd_unittest.py
index 138ba69..d36d03b 100755
--- a/client/cros/httpd_unittest.py
+++ b/client/cros/httpd_unittest.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 
 # Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
diff --git a/client/cros/liststorage.py b/client/cros/liststorage.py
index 1ce343c..b528d07 100644
--- a/client/cros/liststorage.py
+++ b/client/cros/liststorage.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 
 # Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
diff --git a/client/cros/multimedia/image_generator.py b/client/cros/multimedia/image_generator.py
index 38b5bf0..b4a4d88 100755
--- a/client/cros/multimedia/image_generator.py
+++ b/client/cros/multimedia/image_generator.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
 # Copyright 2014 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
 # found in the LICENSE file.
diff --git a/client/cros/multimedia/multimedia_xmlrpc_server.py b/client/cros/multimedia/multimedia_xmlrpc_server.py
index 86f8915..7c45965 100755
--- a/client/cros/multimedia/multimedia_xmlrpc_server.py
+++ b/client/cros/multimedia/multimedia_xmlrpc_server.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
 # Copyright (c) 2013 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
 # found in the LICENSE file.
diff --git a/client/cros/networking/apmanager_xmlrpc_server.py b/client/cros/networking/apmanager_xmlrpc_server.py
index 4e5dfb7..5e066f1 100755
--- a/client/cros/networking/apmanager_xmlrpc_server.py
+++ b/client/cros/networking/apmanager_xmlrpc_server.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 
 # Copyright 2014 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
diff --git a/client/cros/networking/shill_xmlrpc_server.py b/client/cros/networking/shill_xmlrpc_server.py
index ba44e71..cefe4e3 100755
--- a/client/cros/networking/shill_xmlrpc_server.py
+++ b/client/cros/networking/shill_xmlrpc_server.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 
 # Copyright (c) 2013 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
diff --git a/client/cros/nfc/console.py b/client/cros/nfc/console.py
index f844abe..96302cd 100755
--- a/client/cros/nfc/console.py
+++ b/client/cros/nfc/console.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
 
 # Copyright (c) 2013 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
diff --git a/client/cros/scripts/device b/client/cros/scripts/device
index a6f2c1e..7b4231a 100644
--- a/client/cros/scripts/device
+++ b/client/cros/scripts/device
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 
 # Copyright (c) 2013 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
diff --git a/client/cros/scripts/profile b/client/cros/scripts/profile
index 2d0d0f1..124dd18 100755
--- a/client/cros/scripts/profile
+++ b/client/cros/scripts/profile
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 
 # Copyright (c) 2013 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
diff --git a/client/cros/scripts/wifi b/client/cros/scripts/wifi
index 1b703f9..4ba3593 100755
--- a/client/cros/scripts/wifi
+++ b/client/cros/scripts/wifi
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 
 # Copyright (c) 2013 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
diff --git a/client/cros/tendo/n_faced_peerd/n_faced_peerd_main.py b/client/cros/tendo/n_faced_peerd/n_faced_peerd_main.py
index 22b4aae..989cf6e 100755
--- a/client/cros/tendo/n_faced_peerd/n_faced_peerd_main.py
+++ b/client/cros/tendo/n_faced_peerd/n_faced_peerd_main.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 
 # Copyright 2015 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
diff --git a/client/cros/video/histogram_verifier_unittest.py b/client/cros/video/histogram_verifier_unittest.py
index 9aac99b..6dee212 100755
--- a/client/cros/video/histogram_verifier_unittest.py
+++ b/client/cros/video/histogram_verifier_unittest.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 # Copyright 2018 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
 # found in the LICENSE file.
diff --git a/client/deps/camera_hal3/camera_hal3.py b/client/deps/camera_hal3/camera_hal3.py
index 53e9fd9..f3b3137 100755
--- a/client/deps/camera_hal3/camera_hal3.py
+++ b/client/deps/camera_hal3/camera_hal3.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 
 # Copyright (c) 2017 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
diff --git a/client/deps/dbus_protos/dbus_protos.py b/client/deps/dbus_protos/dbus_protos.py
index 8750511..276bd29 100644
--- a/client/deps/dbus_protos/dbus_protos.py
+++ b/client/deps/dbus_protos/dbus_protos.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 
 # Copyright 2018 The Chromium Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
diff --git a/client/deps/dejagnu/dejagnu.py b/client/deps/dejagnu/dejagnu.py
index 33888f3..af484c0 100755
--- a/client/deps/dejagnu/dejagnu.py
+++ b/client/deps/dejagnu/dejagnu.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 
 import os
 from autotest_lib.client.bin import utils
diff --git a/client/deps/fakegudev/fakegudev.py b/client/deps/fakegudev/fakegudev.py
index d8e53c6..234930d 100755
--- a/client/deps/fakegudev/fakegudev.py
+++ b/client/deps/fakegudev/fakegudev.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 
 # Copyright (c) 2011 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
diff --git a/client/deps/fakemodem/fakemodem.py b/client/deps/fakemodem/fakemodem.py
index d8e53c6..234930d 100755
--- a/client/deps/fakemodem/fakemodem.py
+++ b/client/deps/fakemodem/fakemodem.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 
 # Copyright (c) 2011 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
diff --git a/client/deps/glmark2/glmark2.py b/client/deps/glmark2/glmark2.py
index c8b47be..f3b549a 100755
--- a/client/deps/glmark2/glmark2.py
+++ b/client/deps/glmark2/glmark2.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 
 # Copyright (c) 2014 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
diff --git a/client/deps/graphics/graphics.py b/client/deps/graphics/graphics.py
index cbb0988..2c6e533 100755
--- a/client/deps/graphics/graphics.py
+++ b/client/deps/graphics/graphics.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 
 # Copyright (c) 2014 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
diff --git a/client/deps/gtest/gtest.py b/client/deps/gtest/gtest.py
index c641611..455a1ec 100755
--- a/client/deps/gtest/gtest.py
+++ b/client/deps/gtest/gtest.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 
 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
diff --git a/client/deps/iwcap/iwcap.py b/client/deps/iwcap/iwcap.py
index cb39e28..3ab3ad6 100755
--- a/client/deps/iwcap/iwcap.py
+++ b/client/deps/iwcap/iwcap.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 
 import os, common
 from autotest_lib.client.bin import utils
diff --git a/client/deps/lansim/lansim.py b/client/deps/lansim/lansim.py
index 163fe83..65599de 100644
--- a/client/deps/lansim/lansim.py
+++ b/client/deps/lansim/lansim.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 # Copyright (c) 2013 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
 # found in the LICENSE file.
diff --git a/client/deps/libcap/libcap.py b/client/deps/libcap/libcap.py
index d31c8f9..81cb1f6 100755
--- a/client/deps/libcap/libcap.py
+++ b/client/deps/libcap/libcap.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 
 import os
 from autotest_lib.client.bin import utils
diff --git a/client/deps/libnet/libnet.py b/client/deps/libnet/libnet.py
index 0b0dd1a..3322004 100755
--- a/client/deps/libnet/libnet.py
+++ b/client/deps/libnet/libnet.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 
 import os
 from autotest_lib.client.bin import utils
diff --git a/client/deps/mysql/mysql.py b/client/deps/mysql/mysql.py
index 2328d30..e5f1d08 100755
--- a/client/deps/mysql/mysql.py
+++ b/client/deps/mysql/mysql.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 
 import os
 from autotest_lib.client.bin import utils
diff --git a/client/deps/nvmap_compactor/nvmap_compactor.py b/client/deps/nvmap_compactor/nvmap_compactor.py
index 75bc6a5..44c6fde 100755
--- a/client/deps/nvmap_compactor/nvmap_compactor.py
+++ b/client/deps/nvmap_compactor/nvmap_compactor.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 
 # Copyright (c) 2011 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
diff --git a/client/deps/pgpool/pgpool.py b/client/deps/pgpool/pgpool.py
index 1c52bfb..f1e2922 100755
--- a/client/deps/pgpool/pgpool.py
+++ b/client/deps/pgpool/pgpool.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 
 import os
 from autotest_lib.client.bin import utils
diff --git a/client/deps/pgsql/pgsql.py b/client/deps/pgsql/pgsql.py
index e1aabf7..c980701 100755
--- a/client/deps/pgsql/pgsql.py
+++ b/client/deps/pgsql/pgsql.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 
 import os
 from autotest_lib.client.bin import utils
diff --git a/client/deps/policy_protos/policy_protos.py b/client/deps/policy_protos/policy_protos.py
index 37eea0a..671d678 100644
--- a/client/deps/policy_protos/policy_protos.py
+++ b/client/deps/policy_protos/policy_protos.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 
 # Copyright 2018 The Chromium Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
diff --git a/client/deps/systemtap/systemtap.py b/client/deps/systemtap/systemtap.py
index 4504dfa..5723757 100755
--- a/client/deps/systemtap/systemtap.py
+++ b/client/deps/systemtap/systemtap.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 
 import os
 import shutil
diff --git a/client/deps/webgl_mpd/webgl_mpd.py b/client/deps/webgl_mpd/webgl_mpd.py
index 05fdc2d..c3092a9 100755
--- a/client/deps/webgl_mpd/webgl_mpd.py
+++ b/client/deps/webgl_mpd/webgl_mpd.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 
 # Copyright (c) 2013 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
diff --git a/client/profilers/cpistat/cpistat b/client/profilers/cpistat/cpistat
index e8aec06..a439d88 100755
--- a/client/profilers/cpistat/cpistat
+++ b/client/profilers/cpistat/cpistat
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 
 """
 python-libpfm4 provides python bindings to the libpfm4
diff --git a/client/setup_modules_unittest.py b/client/setup_modules_unittest.py
index f017375..e3ce795 100755
--- a/client/setup_modules_unittest.py
+++ b/client/setup_modules_unittest.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 
 import cStringIO, logging, os, sys, unittest
 
diff --git a/client/site_tests/firmware_TouchMTB/main.py b/client/site_tests/firmware_TouchMTB/main.py
index 093ebed..4ca8c64 100755
--- a/client/site_tests/firmware_TouchMTB/main.py
+++ b/client/site_tests/firmware_TouchMTB/main.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 # Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
 # found in the LICENSE file.
diff --git a/client/site_tests/firmware_TouchMTB/mini_color.py b/client/site_tests/firmware_TouchMTB/mini_color.py
index ab88401..4180d68 100644
--- a/client/site_tests/firmware_TouchMTB/mini_color.py
+++ b/client/site_tests/firmware_TouchMTB/mini_color.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 
 # Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
diff --git a/client/site_tests/graphics_WebGLAquarium/system_sampler.py b/client/site_tests/graphics_WebGLAquarium/system_sampler.py
index 37ff801..5abd346 100644
--- a/client/site_tests/graphics_WebGLAquarium/system_sampler.py
+++ b/client/site_tests/graphics_WebGLAquarium/system_sampler.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 # Copyright 2018 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
 # found in the LICENSE file.
diff --git a/client/site_tests/graphics_dEQP/generate_controlfiles.py b/client/site_tests/graphics_dEQP/generate_controlfiles.py
index ace4b46..2e06faa 100644
--- a/client/site_tests/graphics_dEQP/generate_controlfiles.py
+++ b/client/site_tests/graphics_dEQP/generate_controlfiles.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
 
 """
 This script generates autotest control files for dEQP. It supports
diff --git a/client/site_tests/graphics_dEQP/scripts/failure_matrix.py b/client/site_tests/graphics_dEQP/scripts/failure_matrix.py
index ae0ba35..4441117 100755
--- a/client/site_tests/graphics_dEQP/scripts/failure_matrix.py
+++ b/client/site_tests/graphics_dEQP/scripts/failure_matrix.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 # Copyright 2016 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
 # found in the LICENSE file.
diff --git a/client/site_tests/graphics_dEQP/scripts/process_logs.py b/client/site_tests/graphics_dEQP/scripts/process_logs.py
index b03d629..8284082 100644
--- a/client/site_tests/graphics_dEQP/scripts/process_logs.py
+++ b/client/site_tests/graphics_dEQP/scripts/process_logs.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 # Copyright 2015 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
 # found in the LICENSE file.
diff --git a/client/site_tests/hardware_Resolution/hardware_Resolution.py b/client/site_tests/hardware_Resolution/hardware_Resolution.py
index d1f7f47..d686d5c 100644
--- a/client/site_tests/hardware_Resolution/hardware_Resolution.py
+++ b/client/site_tests/hardware_Resolution/hardware_Resolution.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 #
 # Copyright (c) 2010 The Chromium Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
diff --git a/client/site_tests/kernel_CpufreqMinMax/kernel_CpufreqMinMax.py b/client/site_tests/kernel_CpufreqMinMax/kernel_CpufreqMinMax.py
index b93263b..417db32 100644
--- a/client/site_tests/kernel_CpufreqMinMax/kernel_CpufreqMinMax.py
+++ b/client/site_tests/kernel_CpufreqMinMax/kernel_CpufreqMinMax.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 #
 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
diff --git a/client/site_tests/kernel_CrosECSysfs/kernel_CrosECSysfs.py b/client/site_tests/kernel_CrosECSysfs/kernel_CrosECSysfs.py
index e10e691..e164ed3 100644
--- a/client/site_tests/kernel_CrosECSysfs/kernel_CrosECSysfs.py
+++ b/client/site_tests/kernel_CrosECSysfs/kernel_CrosECSysfs.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 #
 # Copyright (c) 2014 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
diff --git a/client/site_tests/kernel_CryptoAPI/kernel_CryptoAPI.py b/client/site_tests/kernel_CryptoAPI/kernel_CryptoAPI.py
index 6859baf..0ca0329 100644
--- a/client/site_tests/kernel_CryptoAPI/kernel_CryptoAPI.py
+++ b/client/site_tests/kernel_CryptoAPI/kernel_CryptoAPI.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 #
 # Copyright (c) 2015 The Chromium Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
diff --git a/client/site_tests/kernel_HdParm/kernel_HdParm.py b/client/site_tests/kernel_HdParm/kernel_HdParm.py
index 69a23cd..66329c7 100644
--- a/client/site_tests/kernel_HdParm/kernel_HdParm.py
+++ b/client/site_tests/kernel_HdParm/kernel_HdParm.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 #
 # Copyright (c) 2011-2012 The Chromium Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
diff --git a/client/site_tests/kernel_LTP/ltp-diff.py b/client/site_tests/kernel_LTP/ltp-diff.py
index 4950bc4..a4bb330 100755
--- a/client/site_tests/kernel_LTP/ltp-diff.py
+++ b/client/site_tests/kernel_LTP/ltp-diff.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 # (C) Copyright IBM Corp. 2006
 # Author: Dustin Kirkland <dustin.kirkland@us.ibm.com>
 # Description:
diff --git a/client/site_tests/kernel_LTP/parse_ltp_out.py b/client/site_tests/kernel_LTP/parse_ltp_out.py
index dee2091..de430b8 100755
--- a/client/site_tests/kernel_LTP/parse_ltp_out.py
+++ b/client/site_tests/kernel_LTP/parse_ltp_out.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 # Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
 # found in the LICENSE file.
diff --git a/client/site_tests/kernel_PerfEventRename/kernel_PerfEventRename.py b/client/site_tests/kernel_PerfEventRename/kernel_PerfEventRename.py
index 97e774a..ac70d02 100644
--- a/client/site_tests/kernel_PerfEventRename/kernel_PerfEventRename.py
+++ b/client/site_tests/kernel_PerfEventRename/kernel_PerfEventRename.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 #
 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
diff --git a/client/site_tests/kernel_SchedBandwith/kernel_SchedBandwith.py b/client/site_tests/kernel_SchedBandwith/kernel_SchedBandwith.py
index e3b8b39..ab3a442 100644
--- a/client/site_tests/kernel_SchedBandwith/kernel_SchedBandwith.py
+++ b/client/site_tests/kernel_SchedBandwith/kernel_SchedBandwith.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 #
 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
diff --git a/client/site_tests/kernel_VbootContextEC/kernel_VbootContextEC.py b/client/site_tests/kernel_VbootContextEC/kernel_VbootContextEC.py
index 05cea18..833080d 100644
--- a/client/site_tests/kernel_VbootContextEC/kernel_VbootContextEC.py
+++ b/client/site_tests/kernel_VbootContextEC/kernel_VbootContextEC.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 #
 # Copyright (c) 2013 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
diff --git a/client/site_tests/platform_CheckErrorsInLog/platform_CheckErrorsInLog.py b/client/site_tests/platform_CheckErrorsInLog/platform_CheckErrorsInLog.py
index 4ea6d78..496e05a 100644
--- a/client/site_tests/platform_CheckErrorsInLog/platform_CheckErrorsInLog.py
+++ b/client/site_tests/platform_CheckErrorsInLog/platform_CheckErrorsInLog.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 #
 # Copyright (c) 2010 The Chromium Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
diff --git a/client/site_tests/platform_CompressedSwap/platform_CompressedSwap.py b/client/site_tests/platform_CompressedSwap/platform_CompressedSwap.py
index 04c32bb..fc92d8b 100644
--- a/client/site_tests/platform_CompressedSwap/platform_CompressedSwap.py
+++ b/client/site_tests/platform_CompressedSwap/platform_CompressedSwap.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 #
 # Copyright (c) 2013 The Chromium Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
diff --git a/client/site_tests/platform_CompressedSwapPerf/platform_CompressedSwapPerf.py b/client/site_tests/platform_CompressedSwapPerf/platform_CompressedSwapPerf.py
index a388b7e..24a901f 100644
--- a/client/site_tests/platform_CompressedSwapPerf/platform_CompressedSwapPerf.py
+++ b/client/site_tests/platform_CompressedSwapPerf/platform_CompressedSwapPerf.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 #
 # Copyright (c) 2013 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
diff --git a/client/site_tests/platform_FileNum/platform_FileNum.py b/client/site_tests/platform_FileNum/platform_FileNum.py
index d5e8b80..97cc7bf 100755
--- a/client/site_tests/platform_FileNum/platform_FileNum.py
+++ b/client/site_tests/platform_FileNum/platform_FileNum.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 #
 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
diff --git a/client/site_tests/platform_FileSize/platform_FileSize.py b/client/site_tests/platform_FileSize/platform_FileSize.py
index 0dde6c2..bbc20d2 100755
--- a/client/site_tests/platform_FileSize/platform_FileSize.py
+++ b/client/site_tests/platform_FileSize/platform_FileSize.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 #
 # Copyright (c) 2010 The Chromium Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
diff --git a/client/site_tests/platform_MemCheck/platform_MemCheck.py b/client/site_tests/platform_MemCheck/platform_MemCheck.py
index 46596c7..856d9e8 100644
--- a/client/site_tests/platform_MemCheck/platform_MemCheck.py
+++ b/client/site_tests/platform_MemCheck/platform_MemCheck.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 #
 # Copyright (c) 2010 The Chromium Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
diff --git a/client/site_tests/platform_Nvram/platform_Nvram.py b/client/site_tests/platform_Nvram/platform_Nvram.py
index 8393e35..d07c19f 100755
--- a/client/site_tests/platform_Nvram/platform_Nvram.py
+++ b/client/site_tests/platform_Nvram/platform_Nvram.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 #
 # Copyright (c) 2010 The Chromium Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
diff --git a/client/site_tests/platform_PrinterPpds/download_ppds_make_archive.py b/client/site_tests/platform_PrinterPpds/download_ppds_make_archive.py
index cec585b..e1e8e0e 100755
--- a/client/site_tests/platform_PrinterPpds/download_ppds_make_archive.py
+++ b/client/site_tests/platform_PrinterPpds/download_ppds_make_archive.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
 # Copyright 2018 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
 # found in the LICENSE file.
diff --git a/client/site_tests/platform_PrinterPpds/test_fake_printer.py b/client/site_tests/platform_PrinterPpds/test_fake_printer.py
index dc89f77..0647a8e 100755
--- a/client/site_tests/platform_PrinterPpds/test_fake_printer.py
+++ b/client/site_tests/platform_PrinterPpds/test_fake_printer.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 # Copyright 2018 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
 # found in the LICENSE file.
diff --git a/client/site_tests/platform_PrinterPpds/test_multithreaded_processor.py b/client/site_tests/platform_PrinterPpds/test_multithreaded_processor.py
index c1912e9..90205fd 100755
--- a/client/site_tests/platform_PrinterPpds/test_multithreaded_processor.py
+++ b/client/site_tests/platform_PrinterPpds/test_multithreaded_processor.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 # Copyright 2018 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
 # found in the LICENSE file.
diff --git a/client/site_tests/platform_TempFS/platform_TempFS.py b/client/site_tests/platform_TempFS/platform_TempFS.py
index bf5df2d..5787d24 100755
--- a/client/site_tests/platform_TempFS/platform_TempFS.py
+++ b/client/site_tests/platform_TempFS/platform_TempFS.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 #
 # Copyright (c) 2010 The Chromium Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
diff --git a/client/site_tests/platform_TraceClockMonotonic/platform_TraceClockMonotonic.py b/client/site_tests/platform_TraceClockMonotonic/platform_TraceClockMonotonic.py
index 1360cf5..7424922 100644
--- a/client/site_tests/platform_TraceClockMonotonic/platform_TraceClockMonotonic.py
+++ b/client/site_tests/platform_TraceClockMonotonic/platform_TraceClockMonotonic.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 #
 # Copyright (c) 2015 The Chromium Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
diff --git a/client/site_tests/security_SMMLocked/security_SMMLocked.py b/client/site_tests/security_SMMLocked/security_SMMLocked.py
index 35b8833..fc1693b 100644
--- a/client/site_tests/security_SMMLocked/security_SMMLocked.py
+++ b/client/site_tests/security_SMMLocked/security_SMMLocked.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 #
 # Copyright (c) 2013 The Chromium Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
diff --git a/client/tests/cgroup/cgroup_client.py b/client/tests/cgroup/cgroup_client.py
index 8b01722..d3e5be4 100755
--- a/client/tests/cgroup/cgroup_client.py
+++ b/client/tests/cgroup/cgroup_client.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 # -*- coding: utf-8 -*-
 """
 Interactive python script for testing cgroups. It will try to use system
diff --git a/client/tests/cgroup/cgroup_common.py b/client/tests/cgroup/cgroup_common.py
index 51e93f7..9dcfdc0 100755
--- a/client/tests/cgroup/cgroup_common.py
+++ b/client/tests/cgroup/cgroup_common.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 # -*- coding: utf-8 -*-
 """
 Helpers for cgroup testing.
diff --git a/client/tests/compilebench/compilebench.patch b/client/tests/compilebench/compilebench.patch
index 29d9b87..00e4872 100644
--- a/client/tests/compilebench/compilebench.patch
+++ b/client/tests/compilebench/compilebench.patch
@@ -2,7 +2,7 @@
 +++ src/compilebench	2009-12-17 19:26:04.000000000 +0800
 @@ -1,4 +1,4 @@
 -#!/usr/bin/env python2.4
-+#!/usr/bin/env python
++#!/usr/bin/env python2
  #
  # sample usage: compilebench -D some_working_dir see compilebench -h for more
  #
diff --git a/client/tests/iozone/postprocessing.py b/client/tests/iozone/postprocessing.py
index 27d0569..17c7766 100755
--- a/client/tests/iozone/postprocessing.py
+++ b/client/tests/iozone/postprocessing.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 """
 Postprocessing module for IOzone. It is capable to pick results from an
 IOzone run, calculate the geometric mean for all throughput results for
diff --git a/client/tests/kernel_sysrq_info/kernel_sysrq_info.py b/client/tests/kernel_sysrq_info/kernel_sysrq_info.py
index 63f1066..4b88a6e 100755
--- a/client/tests/kernel_sysrq_info/kernel_sysrq_info.py
+++ b/client/tests/kernel_sysrq_info/kernel_sysrq_info.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 #
 # Copyright (c) 2015 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
diff --git a/client/tests/ltp/ltp-diff.py b/client/tests/ltp/ltp-diff.py
index 9aca336..a8d2877 100755
--- a/client/tests/ltp/ltp-diff.py
+++ b/client/tests/ltp/ltp-diff.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 # (C) Copyright IBM Corp. 2006
 # Author: Dustin Kirkland <dustin.kirkland@us.ibm.com>
 # Description:
diff --git a/client/tests/ltp/parse_ltp_out.py b/client/tests/ltp/parse_ltp_out.py
index 45d9eff..85f6cc2 100755
--- a/client/tests/ltp/parse_ltp_out.py
+++ b/client/tests/ltp/parse_ltp_out.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 # Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
 # found in the LICENSE file.
diff --git a/client/tests/wb_kupdate/wb_kupdate_unittest.py b/client/tests/wb_kupdate/wb_kupdate_unittest.py
index 84092ed..daa4e36 100755
--- a/client/tests/wb_kupdate/wb_kupdate_unittest.py
+++ b/client/tests/wb_kupdate/wb_kupdate_unittest.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 
 import common
 import datetime
diff --git a/client/tools/autotest b/client/tools/autotest
index 8fae3f4..0406cc0 100755
--- a/client/tools/autotest
+++ b/client/tools/autotest
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 import sys,os
 
 autodir = None
diff --git a/client/tools/avgtime b/client/tools/avgtime
index b5a1ed7..4145594 100755
--- a/client/tools/avgtime
+++ b/client/tools/avgtime
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 import sys, os, re
 
 def avg_deviation(values):
diff --git a/client/tools/crash_handler.py b/client/tools/crash_handler.py
index 5dbef4b..c052a66 100755
--- a/client/tools/crash_handler.py
+++ b/client/tools/crash_handler.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 """
 Simple crash handling application for autotest
 
diff --git a/client/tools/diffprofile b/client/tools/diffprofile
index da57eb0..3d7f3ce 100755
--- a/client/tools/diffprofile
+++ b/client/tools/diffprofile
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 # Copyright Martin J. Bligh (mbligh@google.com)
 # Released under the GPL, v2
 
diff --git a/client/tools/html_report.py b/client/tools/html_report.py
index ac5db41..2bba72c 100755
--- a/client/tools/html_report.py
+++ b/client/tools/html_report.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 """
 Module used to parse the autotest job results and generate an HTML report.
 
diff --git a/client/tools/make_clean b/client/tools/make_clean
index c8c0364..058c286 100755
--- a/client/tools/make_clean
+++ b/client/tools/make_clean
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 import os
 
 def purge_src(top_dir):
diff --git a/client/tools/oprofile_diff b/client/tools/oprofile_diff
index f49becb..ed9e503 100755
--- a/client/tools/oprofile_diff
+++ b/client/tools/oprofile_diff
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 import re, sys
 
 def parse_file(filename):
diff --git a/contrib/always_failing_tests.py b/contrib/always_failing_tests.py
index 32981a1..e883807 100755
--- a/contrib/always_failing_tests.py
+++ b/contrib/always_failing_tests.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
 
 """
 This script prints out a csv file of `suite,test,path/to/control.file` where
diff --git a/contrib/coverage.py b/contrib/coverage.py
index 9b2bf67..c00ce2a 100755
--- a/contrib/coverage.py
+++ b/contrib/coverage.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 #
 #             Perforce Defect Tracking Integration Project
 #              <http://www.ravenbrook.com/project/p4dti/>
diff --git a/contrib/db_cleanup.py b/contrib/db_cleanup.py
index 055cdc7..c2f9510 100755
--- a/contrib/db_cleanup.py
+++ b/contrib/db_cleanup.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 # Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
 # found in the LICENSE file.
diff --git a/contrib/db_optimize.py b/contrib/db_optimize.py
index 10dc9d8..6b4dce2 100755
--- a/contrib/db_optimize.py
+++ b/contrib/db_optimize.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 # Copyright (c) 2014 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
 # found in the LICENSE file.
diff --git a/contrib/dhcp_failed_machines.py b/contrib/dhcp_failed_machines.py
index 6192112..a44fd2e 100755
--- a/contrib/dhcp_failed_machines.py
+++ b/contrib/dhcp_failed_machines.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 
 """
 usage:
diff --git a/contrib/find_suite_tasks.py b/contrib/find_suite_tasks.py
index f5f13c8..8ad3506 100755
--- a/contrib/find_suite_tasks.py
+++ b/contrib/find_suite_tasks.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
 
 import common
 import json
diff --git a/contrib/log_distiller.py b/contrib/log_distiller.py
index f44b132..6122a45 100755
--- a/contrib/log_distiller.py
+++ b/contrib/log_distiller.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 """
 Usage: ./cron_scripts/log_distiller.py job_id path_to_logfile
     If the job_id is a suite it will find all subjobs.
diff --git a/contrib/modelviz.py b/contrib/modelviz.py
index 689a363..6126475 100755
--- a/contrib/modelviz.py
+++ b/contrib/modelviz.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
 """Django model to DOT (Graphviz) converter
 by Antonio Cavedoni <antonio@cavedoni.org>
 
diff --git a/contrib/print_host_labels.py b/contrib/print_host_labels.py
index a595751..04d32cb 100755
--- a/contrib/print_host_labels.py
+++ b/contrib/print_host_labels.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
 
 """
 Usage: ./print_host_labels.py <IP.or.hostname>
diff --git a/contrib/repair_hosts b/contrib/repair_hosts
index ee3717e..e7dd435 100755
--- a/contrib/repair_hosts
+++ b/contrib/repair_hosts
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 # Simple utility to trigger a Repair job on a bunch of hosts.
 #
 # CAVEAT:  no error checking; if any argument isn't a valid
diff --git a/contrib/repair_hosts_throttled.py b/contrib/repair_hosts_throttled.py
index 697bb25..37caad1 100755
--- a/contrib/repair_hosts_throttled.py
+++ b/contrib/repair_hosts_throttled.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 # Takes a list of hostnames (via file) and schedules host repair
 # jobs based on the delay specified in order to throttle the jobs
 # and not overwhelm the system.
diff --git a/contrib/reverify_hosts b/contrib/reverify_hosts
index 8d31ac1..da449bf 100755
--- a/contrib/reverify_hosts
+++ b/contrib/reverify_hosts
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 # Simple utility to trigger a Verify job on a bunch of hosts.
 #
 # CAVEAT:  no error checking; if any argument isn't a valid
diff --git a/contrib/shared_hosts.py b/contrib/shared_hosts.py
index 199e083..b45d3c8 100755
--- a/contrib/shared_hosts.py
+++ b/contrib/shared_hosts.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 
 """
 Finds hosts that are shared between both cautotest and cautotest-cq.
diff --git a/database/database_connection_unittest.py b/database/database_connection_unittest.py
index 058ed4d..95d6f6b 100755
--- a/database/database_connection_unittest.py
+++ b/database/database_connection_unittest.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 
 import unittest, time
 import common
diff --git a/database/db_utils_unittest.py b/database/db_utils_unittest.py
index 72b7180..9c01817 100755
--- a/database/db_utils_unittest.py
+++ b/database/db_utils_unittest.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 
 import unittest
 import common
diff --git a/database/migrate_unittest.py b/database/migrate_unittest.py
index 034f633..890f3d9 100755
--- a/database/migrate_unittest.py
+++ b/database/migrate_unittest.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 
 import unittest, tempfile, os
 import common
diff --git a/frontend/afe/direct_afe.py b/frontend/afe/direct_afe.py
index 60f96c2..996d4c1 100644
--- a/frontend/afe/direct_afe.py
+++ b/frontend/afe/direct_afe.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 # Copyright (c) 2013 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
 # found in the LICENSE file.
diff --git a/frontend/afe/direct_afe_unittest.py b/frontend/afe/direct_afe_unittest.py
index 3371597..e6c96fa 100755
--- a/frontend/afe/direct_afe_unittest.py
+++ b/frontend/afe/direct_afe_unittest.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 #pylint: disable-msg=C0111
 import unittest
 import common
diff --git a/frontend/afe/json_rpc/serviceHandler_unittest.py b/frontend/afe/json_rpc/serviceHandler_unittest.py
index 1429f45..9b9c948 100755
--- a/frontend/afe/json_rpc/serviceHandler_unittest.py
+++ b/frontend/afe/json_rpc/serviceHandler_unittest.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 
 import unittest
 import common
diff --git a/frontend/afe/moblab_rpc_interface_unittest.py b/frontend/afe/moblab_rpc_interface_unittest.py
index 1ba949b..ba6d22c 100644
--- a/frontend/afe/moblab_rpc_interface_unittest.py
+++ b/frontend/afe/moblab_rpc_interface_unittest.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 #
 # Copyright (c) 2016 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
diff --git a/frontend/afe/models_test.py b/frontend/afe/models_test.py
index 25ca5e5..ae49b72 100755
--- a/frontend/afe/models_test.py
+++ b/frontend/afe/models_test.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 # pylint: disable=missing-docstring
 
 import unittest
diff --git a/frontend/client/gwt_dir b/frontend/client/gwt_dir
index 2cf3576..9bcd4bf 100755
--- a/frontend/client/gwt_dir
+++ b/frontend/client/gwt_dir
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 #
 # Find the GWT installation and print its location to stdout.
 
diff --git a/frontend/client_compilation_unittest.py b/frontend/client_compilation_unittest.py
index bbb0f8f..763467a 100755
--- a/frontend/client_compilation_unittest.py
+++ b/frontend/client_compilation_unittest.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 
 import os, shutil, tempfile, unittest
 import common
diff --git a/frontend/django_lite_unittest.py b/frontend/django_lite_unittest.py
index d68133c..7f25c26 100755
--- a/frontend/django_lite_unittest.py
+++ b/frontend/django_lite_unittest.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 #pylint: disable-msg=C0111
 
 import unittest
diff --git a/frontend/manage.py b/frontend/manage.py
index 8ae4f17..7f0e6af 100755
--- a/frontend/manage.py
+++ b/frontend/manage.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
 import sys
 import setup_django_environment
 
diff --git a/frontend/tko/csv_encoder_unittest.py b/frontend/tko/csv_encoder_unittest.py
index 8d1179c..9880bd1 100755
--- a/frontend/tko/csv_encoder_unittest.py
+++ b/frontend/tko/csv_encoder_unittest.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 
 import unittest
 import common
diff --git a/frontend/tko/models_test.py b/frontend/tko/models_test.py
index e7db614..0a7f98c 100644
--- a/frontend/tko/models_test.py
+++ b/frontend/tko/models_test.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 # pylint: disable=missing-docstring
 
 import unittest
diff --git a/scheduler/agent_task_unittest.py b/scheduler/agent_task_unittest.py
index 95d81ed..5350bb6 100755
--- a/scheduler/agent_task_unittest.py
+++ b/scheduler/agent_task_unittest.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 
 import unittest
 
diff --git a/scheduler/drone_manager_unittest.py b/scheduler/drone_manager_unittest.py
index 4a4a2a2..63841f1 100755
--- a/scheduler/drone_manager_unittest.py
+++ b/scheduler/drone_manager_unittest.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 
 import cPickle
 import os, unittest
diff --git a/scheduler/drone_task_queue_unittest.py b/scheduler/drone_task_queue_unittest.py
index 1245b79..9505527 100755
--- a/scheduler/drone_task_queue_unittest.py
+++ b/scheduler/drone_task_queue_unittest.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 #
 # Copyright 2015 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
diff --git a/scheduler/drone_utility.py b/scheduler/drone_utility.py
index 1abf220..5ccac0a 100755
--- a/scheduler/drone_utility.py
+++ b/scheduler/drone_utility.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 
 """Utility module that executes management commands on the drone.
 
diff --git a/scheduler/drone_utility_unittest.py b/scheduler/drone_utility_unittest.py
index 7a0c38c..63d6029 100755
--- a/scheduler/drone_utility_unittest.py
+++ b/scheduler/drone_utility_unittest.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 
 """Tests for drone_utility."""
 
diff --git a/scheduler/drones_unittest.py b/scheduler/drones_unittest.py
index 00cbf0c..c9399c9 100755
--- a/scheduler/drones_unittest.py
+++ b/scheduler/drones_unittest.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 #pylint: disable-msg=C0111
 
 """Tests for autotest_lib.scheduler.drones."""
diff --git a/scheduler/host_scheduler.py b/scheduler/host_scheduler.py
index 70db495..c543a6b 100755
--- a/scheduler/host_scheduler.py
+++ b/scheduler/host_scheduler.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 #pylint: disable-msg=C0111
 
 # Copyright (c) 2014 The Chromium OS Authors. All rights reserved.
diff --git a/scheduler/host_scheduler_unittests.py b/scheduler/host_scheduler_unittests.py
index d1d078a..f9f3850 100755
--- a/scheduler/host_scheduler_unittests.py
+++ b/scheduler/host_scheduler_unittests.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 #pylint: disable-msg=C0111
 
 # Copyright (c) 2014 The Chromium OS Authors. All rights reserved.
diff --git a/scheduler/monitor_db.py b/scheduler/monitor_db.py
index c9bb876..dcb3878 100755
--- a/scheduler/monitor_db.py
+++ b/scheduler/monitor_db.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 
 #pylint: disable=C0111
 
diff --git a/scheduler/monitor_db_cleanup_test.py b/scheduler/monitor_db_cleanup_test.py
index 6bf35c4..4f98826 100755
--- a/scheduler/monitor_db_cleanup_test.py
+++ b/scheduler/monitor_db_cleanup_test.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 
 import common
 import logging, unittest
diff --git a/scheduler/monitor_db_functional_test.py b/scheduler/monitor_db_functional_test.py
index df08644..4473aef 100755
--- a/scheduler/monitor_db_functional_test.py
+++ b/scheduler/monitor_db_functional_test.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 # pylint: disable=missing-docstring
 
 import logging, os, signal, unittest
diff --git a/scheduler/monitor_db_unittest.py b/scheduler/monitor_db_unittest.py
index a5c5679..9041c84 100755
--- a/scheduler/monitor_db_unittest.py
+++ b/scheduler/monitor_db_unittest.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 # pylint: disable=missing-docstring
 
 import time
diff --git a/scheduler/only_if_needed_unittests.py b/scheduler/only_if_needed_unittests.py
index b8d8191..3a0259d 100755
--- a/scheduler/only_if_needed_unittests.py
+++ b/scheduler/only_if_needed_unittests.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 
 #pylint: disable=missing-docstring
 
diff --git a/scheduler/rdb_cache_unittests.py b/scheduler/rdb_cache_unittests.py
index ea51d61..39c21db 100755
--- a/scheduler/rdb_cache_unittests.py
+++ b/scheduler/rdb_cache_unittests.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 # Copyright (c) 2014 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
 # found in the LICENSE file.
diff --git a/scheduler/rdb_hosts_unittest.py b/scheduler/rdb_hosts_unittest.py
index cd6618c..8f879ef 100755
--- a/scheduler/rdb_hosts_unittest.py
+++ b/scheduler/rdb_hosts_unittest.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 #
 # Copyright (c) 2014 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
diff --git a/scheduler/rdb_integration_tests.py b/scheduler/rdb_integration_tests.py
index 0312a05..ce068ca 100755
--- a/scheduler/rdb_integration_tests.py
+++ b/scheduler/rdb_integration_tests.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 #pylint: disable-msg=C0111
 
 # Copyright (c) 2014 The Chromium OS Authors. All rights reserved.
diff --git a/scheduler/rdb_testing_utils.py b/scheduler/rdb_testing_utils.py
index da3b576..9ad9feb 100755
--- a/scheduler/rdb_testing_utils.py
+++ b/scheduler/rdb_testing_utils.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 #pylint: disable-msg=C0111
 
 # Copyright (c) 2014 The Chromium OS Authors. All rights reserved.
diff --git a/scheduler/rdb_unittest.py b/scheduler/rdb_unittest.py
index c26502c..ff34f95 100755
--- a/scheduler/rdb_unittest.py
+++ b/scheduler/rdb_unittest.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 #
 # Copyright (c) 2014 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
diff --git a/scheduler/scheduler_lib_unittest.py b/scheduler/scheduler_lib_unittest.py
index b7bda22..64f46ae 100755
--- a/scheduler/scheduler_lib_unittest.py
+++ b/scheduler/scheduler_lib_unittest.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 #
 # Copyright (c) 2014 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
diff --git a/scheduler/scheduler_models_unittest.py b/scheduler/scheduler_models_unittest.py
index 23a94c9..3faa441 100755
--- a/scheduler/scheduler_models_unittest.py
+++ b/scheduler/scheduler_models_unittest.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 #pylint: disable-msg=C0111
 
 import datetime
diff --git a/scheduler/shard/shard_client.py b/scheduler/shard/shard_client.py
index 41bbe4f..6eb9daa 100755
--- a/scheduler/shard/shard_client.py
+++ b/scheduler/shard/shard_client.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 #pylint: disable-msg=C0111
 
 # Copyright (c) 2014 The Chromium OS Authors. All rights reserved.
diff --git a/scheduler/shard/shard_client_integration_tests.py b/scheduler/shard/shard_client_integration_tests.py
index 803c48a..6705319 100644
--- a/scheduler/shard/shard_client_integration_tests.py
+++ b/scheduler/shard/shard_client_integration_tests.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 #pylint: disable-msg=C0111
 
 # Copyright (c) 2014 The Chromium OS Authors. All rights reserved.
diff --git a/scheduler/thread_lib_unittest.py b/scheduler/thread_lib_unittest.py
index 3fec975..31229eb 100755
--- a/scheduler/thread_lib_unittest.py
+++ b/scheduler/thread_lib_unittest.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 #
 # Copyright (c) 2014 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
diff --git a/server/afe_urls_unittest.py b/server/afe_urls_unittest.py
index 951b3e4..3a84ce3 100644
--- a/server/afe_urls_unittest.py
+++ b/server/afe_urls_unittest.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 # Copyright 2016 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
 # found in the LICENSE file.
diff --git a/server/autoserv_parser_unittest.py b/server/autoserv_parser_unittest.py
index 1418613..5cbdf8e 100755
--- a/server/autoserv_parser_unittest.py
+++ b/server/autoserv_parser_unittest.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 
 """Tests for autoserv_parser."""
 
diff --git a/server/autoserv_utils.py b/server/autoserv_utils.py
index e019586..3889233 100644
--- a/server/autoserv_utils.py
+++ b/server/autoserv_utils.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 # Copyright (c) 2013 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
 # found in the LICENSE file.
diff --git a/server/autotest_unittest.py b/server/autotest_unittest.py
index 6cc62b6..4db0f3b 100755
--- a/server/autotest_unittest.py
+++ b/server/autotest_unittest.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 #pylint: disable-msg=C0111
 __author__ = "raphtee@google.com (Travis Miller)"
 
diff --git a/server/base_utils_unittest.py b/server/base_utils_unittest.py
index 9b291c0..d5a21e3 100755
--- a/server/base_utils_unittest.py
+++ b/server/base_utils_unittest.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 
 __author__ = 'raphtee@google.com (Travis Miller)'
 
diff --git a/server/control_segments/get_network_stats b/server/control_segments/get_network_stats
index eeac989..7dc9a3f 100644
--- a/server/control_segments/get_network_stats
+++ b/server/control_segments/get_network_stats
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 #
 # Copyright 2016 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
diff --git a/server/control_segments/stage_server_side_package b/server/control_segments/stage_server_side_package
index 8313c0b..0245e3d 100644
--- a/server/control_segments/stage_server_side_package
+++ b/server/control_segments/stage_server_side_package
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 #
 # Copyright 2015 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
diff --git a/server/cros/ap_configurators/fetch_prebuilt_pyauto.py b/server/cros/ap_configurators/fetch_prebuilt_pyauto.py
index 963b98f..8453b65 100644
--- a/server/cros/ap_configurators/fetch_prebuilt_pyauto.py
+++ b/server/cros/ap_configurators/fetch_prebuilt_pyauto.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
 # found in the LICENSE file.
diff --git a/server/cros/autoupdater_unittest.py b/server/cros/autoupdater_unittest.py
index 53a8ce0..536d67f 100755
--- a/server/cros/autoupdater_unittest.py
+++ b/server/cros/autoupdater_unittest.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 # Copyright (c) 2013 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
 # found in the LICENSE file.
diff --git a/server/cros/chaos_lib/chaos_analyzer.py b/server/cros/chaos_lib/chaos_analyzer.py
index f01e273..79497a5 100755
--- a/server/cros/chaos_lib/chaos_analyzer.py
+++ b/server/cros/chaos_lib/chaos_analyzer.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 # Copyright 2015 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
 # found in the LICENSE file.
diff --git a/server/cros/chaos_lib/chaos_capture_analyzer.py b/server/cros/chaos_lib/chaos_capture_analyzer.py
index 23925af..b5bed71 100755
--- a/server/cros/chaos_lib/chaos_capture_analyzer.py
+++ b/server/cros/chaos_lib/chaos_capture_analyzer.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 # Copyright 2015 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
 # found in the LICENSE file.
diff --git a/server/cros/chaos_lib/chaos_log_analyzer.py b/server/cros/chaos_lib/chaos_log_analyzer.py
index 3436527..cd851a7 100755
--- a/server/cros/chaos_lib/chaos_log_analyzer.py
+++ b/server/cros/chaos_lib/chaos_log_analyzer.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 # Copyright 2015 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
 # found in the LICENSE file.
diff --git a/server/cros/dnsname_mangler_unittest.py b/server/cros/dnsname_mangler_unittest.py
index 2ba0469..da77852 100755
--- a/server/cros/dnsname_mangler_unittest.py
+++ b/server/cros/dnsname_mangler_unittest.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 #
 # Copyright 2014 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
diff --git a/server/cros/dynamic_suite/control_file_getter_unittest.py b/server/cros/dynamic_suite/control_file_getter_unittest.py
index e27ccb2..e52199f 100755
--- a/server/cros/dynamic_suite/control_file_getter_unittest.py
+++ b/server/cros/dynamic_suite/control_file_getter_unittest.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 #
 # Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
diff --git a/server/cros/dynamic_suite/dynamic_suite_unittest.py b/server/cros/dynamic_suite/dynamic_suite_unittest.py
index 75686ef..7c6bdd9 100755
--- a/server/cros/dynamic_suite/dynamic_suite_unittest.py
+++ b/server/cros/dynamic_suite/dynamic_suite_unittest.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 #
 # Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
diff --git a/server/cros/dynamic_suite/frontend_wrappers_unittest.py b/server/cros/dynamic_suite/frontend_wrappers_unittest.py
index fb24346..fd5ac73 100755
--- a/server/cros/dynamic_suite/frontend_wrappers_unittest.py
+++ b/server/cros/dynamic_suite/frontend_wrappers_unittest.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 #
 # Copyright 2015 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
diff --git a/server/cros/dynamic_suite/host_spec_unittest.py b/server/cros/dynamic_suite/host_spec_unittest.py
index bac1574..4fa7202 100755
--- a/server/cros/dynamic_suite/host_spec_unittest.py
+++ b/server/cros/dynamic_suite/host_spec_unittest.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 #
 # Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
diff --git a/server/cros/dynamic_suite/reporting_unittest.py b/server/cros/dynamic_suite/reporting_unittest.py
index 447a805..d2fced7 100755
--- a/server/cros/dynamic_suite/reporting_unittest.py
+++ b/server/cros/dynamic_suite/reporting_unittest.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 #
 # Copyright (c) 2013 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
diff --git a/server/cros/dynamic_suite/suite_unittest.py b/server/cros/dynamic_suite/suite_unittest.py
index a613f41..71c4241 100755
--- a/server/cros/dynamic_suite/suite_unittest.py
+++ b/server/cros/dynamic_suite/suite_unittest.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 #
 # Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
diff --git a/server/cros/dynamic_suite/tools_unittest.py b/server/cros/dynamic_suite/tools_unittest.py
index dcedda5..234d115 100755
--- a/server/cros/dynamic_suite/tools_unittest.py
+++ b/server/cros/dynamic_suite/tools_unittest.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 #
 # Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
diff --git a/server/cros/host_lock_manager_unittest.py b/server/cros/host_lock_manager_unittest.py
index 27c3539..12118e6 100755
--- a/server/cros/host_lock_manager_unittest.py
+++ b/server/cros/host_lock_manager_unittest.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 #
 # Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
diff --git a/server/cros/packet_generation/sendra.py b/server/cros/packet_generation/sendra.py
index 241b5bb..62f6145 100755
--- a/server/cros/packet_generation/sendra.py
+++ b/server/cros/packet_generation/sendra.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 
 import argparse
 import time
diff --git a/server/cros/sonic_extension_downloader.py b/server/cros/sonic_extension_downloader.py
index 348fa6d..04e3ac6 100644
--- a/server/cros/sonic_extension_downloader.py
+++ b/server/cros/sonic_extension_downloader.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 # Copyright (c) 2013 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
 # found in the LICENSE file.
diff --git a/server/cros/telemetry_runner_unittest.py b/server/cros/telemetry_runner_unittest.py
index c0d5e8c..ba7b588 100755
--- a/server/cros/telemetry_runner_unittest.py
+++ b/server/cros/telemetry_runner_unittest.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 # Copyright 2019 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
 # found in the LICENSE file.
diff --git a/server/frontend_unittest.py b/server/frontend_unittest.py
index 739173e..4510958 100755
--- a/server/frontend_unittest.py
+++ b/server/frontend_unittest.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 #
 # Copyright Gregory P. Smith, Google Inc 2008
 # Released under the GPL v2
diff --git a/server/hosts/base_classes_unittest.py b/server/hosts/base_classes_unittest.py
index 14367a9..2a9f787 100755
--- a/server/hosts/base_classes_unittest.py
+++ b/server/hosts/base_classes_unittest.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 # pylint: disable=missing-docstring
 
 import unittest
diff --git a/server/hosts/base_label_unittest.py b/server/hosts/base_label_unittest.py
index 0e30cd0..975b792 100755
--- a/server/hosts/base_label_unittest.py
+++ b/server/hosts/base_label_unittest.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 # Copyright 2016 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
 # found in the LICENSE file.
diff --git a/server/hosts/cros_host_unittest.py b/server/hosts/cros_host_unittest.py
index e23cca7..26b85b4 100755
--- a/server/hosts/cros_host_unittest.py
+++ b/server/hosts/cros_host_unittest.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 # pylint: disable=missing-docstring
 
 import unittest
diff --git a/server/hosts/cros_label_unittest.py b/server/hosts/cros_label_unittest.py
index e8e3376..cc92579 100755
--- a/server/hosts/cros_label_unittest.py
+++ b/server/hosts/cros_label_unittest.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 # Copyright 2017 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
 # found in the LICENSE file.
diff --git a/server/hosts/cros_repair_unittest.py b/server/hosts/cros_repair_unittest.py
index 0561042..df6142c 100755
--- a/server/hosts/cros_repair_unittest.py
+++ b/server/hosts/cros_repair_unittest.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 # Copyright 2017 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
 # found in the LICENSE file.
diff --git a/server/hosts/factory_unittest.py b/server/hosts/factory_unittest.py
index f63053c..3f62aae 100755
--- a/server/hosts/factory_unittest.py
+++ b/server/hosts/factory_unittest.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 # Copyright 2016 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
 # found in the LICENSE file.
diff --git a/server/hosts/jetstream_host_unittest.py b/server/hosts/jetstream_host_unittest.py
index 72032dc..d5f4021 100755
--- a/server/hosts/jetstream_host_unittest.py
+++ b/server/hosts/jetstream_host_unittest.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 # Copyright (c) 2017 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
 # found in the LICENSE file.
diff --git a/server/hosts/remote_unittest.py b/server/hosts/remote_unittest.py
index b1f5c9c..cc61fdc 100755
--- a/server/hosts/remote_unittest.py
+++ b/server/hosts/remote_unittest.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 
 import unittest
 import common
diff --git a/server/hosts/servo_afe_board_map_unittest.py b/server/hosts/servo_afe_board_map_unittest.py
index d843faa..7811124 100755
--- a/server/hosts/servo_afe_board_map_unittest.py
+++ b/server/hosts/servo_afe_board_map_unittest.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 #
 # Copyright 2015 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
diff --git a/server/hosts/ssh_multiplex_unittest.py b/server/hosts/ssh_multiplex_unittest.py
index d19d6c4..2cfe29e 100755
--- a/server/hosts/ssh_multiplex_unittest.py
+++ b/server/hosts/ssh_multiplex_unittest.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 # Copyright 2016 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
 # found in the LICENSE file.
diff --git a/server/server_job_unittest.py b/server/server_job_unittest.py
index ac86b79..70707fb 100755
--- a/server/server_job_unittest.py
+++ b/server/server_job_unittest.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 
 import os
 import tempfile
diff --git a/server/site_tests/autoupdate_EndToEndTest/update_engine_performance_monitor.py b/server/site_tests/autoupdate_EndToEndTest/update_engine_performance_monitor.py
index fddf3d4..cd6dfcc 100644
--- a/server/site_tests/autoupdate_EndToEndTest/update_engine_performance_monitor.py
+++ b/server/site_tests/autoupdate_EndToEndTest/update_engine_performance_monitor.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 # Copyright 2014 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
 # found in the LICENSE file.
diff --git a/server/site_tests/cheets_CTS_Instant/generate_controlfiles.py b/server/site_tests/cheets_CTS_Instant/generate_controlfiles.py
index 4a3fd3f..6aa9f98 100755
--- a/server/site_tests/cheets_CTS_Instant/generate_controlfiles.py
+++ b/server/site_tests/cheets_CTS_Instant/generate_controlfiles.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
 # Copyright 2016 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
 # found in the LICENSE file.
diff --git a/server/site_tests/cheets_CTS_N/generate_controlfiles.py b/server/site_tests/cheets_CTS_N/generate_controlfiles.py
index b8a805c..21e1501 100755
--- a/server/site_tests/cheets_CTS_N/generate_controlfiles.py
+++ b/server/site_tests/cheets_CTS_N/generate_controlfiles.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
 # Copyright 2016 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
 # found in the LICENSE file.
diff --git a/server/site_tests/cheets_CTS_P/generate_controlfiles.py b/server/site_tests/cheets_CTS_P/generate_controlfiles.py
index dfe9322..d03f4f3 100755
--- a/server/site_tests/cheets_CTS_P/generate_controlfiles.py
+++ b/server/site_tests/cheets_CTS_P/generate_controlfiles.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
 # Copyright 2016 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
 # found in the LICENSE file.
diff --git a/server/site_tests/cheets_GTS/generate_controlfiles.py b/server/site_tests/cheets_GTS/generate_controlfiles.py
index 6c2bcf0..45769f0 100755
--- a/server/site_tests/cheets_GTS/generate_controlfiles.py
+++ b/server/site_tests/cheets_GTS/generate_controlfiles.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
 # Copyright 2016 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
 # found in the LICENSE file.
diff --git a/server/site_tests/enterprise_CFM_CEC/chameleon_cecservice/cec_service b/server/site_tests/enterprise_CFM_CEC/chameleon_cecservice/cec_service
index 0403f51..faafc71 100755
--- a/server/site_tests/enterprise_CFM_CEC/chameleon_cecservice/cec_service
+++ b/server/site_tests/enterprise_CFM_CEC/chameleon_cecservice/cec_service
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 
 import sys
 import time
diff --git a/server/site_tests/enterprise_CFM_CEC/chameleon_cecservice/it6803.py b/server/site_tests/enterprise_CFM_CEC/chameleon_cecservice/it6803.py
index 00f8fa6..b1e6157 100755
--- a/server/site_tests/enterprise_CFM_CEC/chameleon_cecservice/it6803.py
+++ b/server/site_tests/enterprise_CFM_CEC/chameleon_cecservice/it6803.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 
 # Copyright 2014 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
diff --git a/server/site_tests/enterprise_CFM_HuddlyUpdater/parse.py b/server/site_tests/enterprise_CFM_HuddlyUpdater/parse.py
index 28f45c2..d2dcd6e 100755
--- a/server/site_tests/enterprise_CFM_HuddlyUpdater/parse.py
+++ b/server/site_tests/enterprise_CFM_HuddlyUpdater/parse.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
 # Copyright 2017 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
 # found in the LICENSE file.
diff --git a/server/site_tests/kernel_IdlePerf/kernel_IdlePerf.py b/server/site_tests/kernel_IdlePerf/kernel_IdlePerf.py
index bf93fd1..0d9d8dc 100644
--- a/server/site_tests/kernel_IdlePerf/kernel_IdlePerf.py
+++ b/server/site_tests/kernel_IdlePerf/kernel_IdlePerf.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 #
 # Copyright (c) 2018 The Chromium Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
diff --git a/server/site_tests/tast/tast_unittest.py b/server/site_tests/tast/tast_unittest.py
index bb2a8da..1c374ef 100755
--- a/server/site_tests/tast/tast_unittest.py
+++ b/server/site_tests/tast/tast_unittest.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 # -*- coding: utf-8 -*-
 # Copyright 2018 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
diff --git a/server/site_tests/tast/testdata/fake_tast.py b/server/site_tests/tast/testdata/fake_tast.py
index 62469ff..b61f925 100755
--- a/server/site_tests/tast/testdata/fake_tast.py
+++ b/server/site_tests/tast/testdata/fake_tast.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 # Copyright 2018 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
 # found in the LICENSE file.
diff --git a/server/site_tests/telemetry_Benchmarks/generate_controlfiles.py b/server/site_tests/telemetry_Benchmarks/generate_controlfiles.py
index bda37de..cd62e08 100644
--- a/server/site_tests/telemetry_Benchmarks/generate_controlfiles.py
+++ b/server/site_tests/telemetry_Benchmarks/generate_controlfiles.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
 
 """
 This file generates all telemetry_Benchmarks control files from a master list.
diff --git a/server/site_tests/telemetry_GpuTests/generate_controlfiles.py b/server/site_tests/telemetry_GpuTests/generate_controlfiles.py
index 2fd71cf..f2d3282 100755
--- a/server/site_tests/telemetry_GpuTests/generate_controlfiles.py
+++ b/server/site_tests/telemetry_GpuTests/generate_controlfiles.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
 
 """
 This file generates all telemetry_GpuTest control files from a master list.
diff --git a/server/site_tests/video_VDAStress/generate_controlfiles.py b/server/site_tests/video_VDAStress/generate_controlfiles.py
index 1417780..a3135bd 100755
--- a/server/site_tests/video_VDAStress/generate_controlfiles.py
+++ b/server/site_tests/video_VDAStress/generate_controlfiles.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
 
 """
 This file generates all video_VDAStress control files from a master list.
diff --git a/server/subcommand_unittest.py b/server/subcommand_unittest.py
index f4ef284..99efd7c 100755
--- a/server/subcommand_unittest.py
+++ b/server/subcommand_unittest.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 # Copyright 2009 Google Inc. Released under the GPL v2
 
 import time, unittest
diff --git a/site_utils/add_detected_host_labels.py b/site_utils/add_detected_host_labels.py
index 25ccd43..89b57b2 100755
--- a/site_utils/add_detected_host_labels.py
+++ b/site_utils/add_detected_host_labels.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 
 # Copyright (c) 2013 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
diff --git a/site_utils/admin/clean_staged_images.py b/site_utils/admin/clean_staged_images.py
index 911c787..3aeca1b 100755
--- a/site_utils/admin/clean_staged_images.py
+++ b/site_utils/admin/clean_staged_images.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 # Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
 # found in the LICENSE file.
diff --git a/site_utils/automated_deploy.py b/site_utils/automated_deploy.py
index 59ddf59..50a2aa2d 100755
--- a/site_utils/automated_deploy.py
+++ b/site_utils/automated_deploy.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 
 # Copyright (c) 2016 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
diff --git a/site_utils/automated_deploy_unittest.py b/site_utils/automated_deploy_unittest.py
index e35a3cb..440d215 100644
--- a/site_utils/automated_deploy_unittest.py
+++ b/site_utils/automated_deploy_unittest.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 # Copyright (c) 2016 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
 # found in the LICENSE file.
diff --git a/site_utils/backup_mysql_db.py b/site_utils/backup_mysql_db.py
index 5c3032f..11b8679 100755
--- a/site_utils/backup_mysql_db.py
+++ b/site_utils/backup_mysql_db.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 
 # Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
diff --git a/site_utils/balance_pools.py b/site_utils/balance_pools.py
index 6be3c1b..dfd5714 100755
--- a/site_utils/balance_pools.py
+++ b/site_utils/balance_pools.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
 # Copyright 2015 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
 # found in the LICENSE file.
diff --git a/site_utils/bootperf-bin/showbootdata b/site_utils/bootperf-bin/showbootdata
index 480de33..23d19ad 100755
--- a/site_utils/bootperf-bin/showbootdata
+++ b/site_utils/bootperf-bin/showbootdata
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 
 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
diff --git a/site_utils/check_hung_proc.py b/site_utils/check_hung_proc.py
index 4b0326cf..268dcba 100755
--- a/site_utils/check_hung_proc.py
+++ b/site_utils/check_hung_proc.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 #
 # Copyright (c) 2015 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
diff --git a/site_utils/check_slave_db_delay.py b/site_utils/check_slave_db_delay.py
index 0eeb620..fc475e4 100755
--- a/site_utils/check_slave_db_delay.py
+++ b/site_utils/check_slave_db_delay.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 # Copyright 2017 The Chromium Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
 # found in the LICENSE file.
diff --git a/site_utils/cleanup_tko_db.py b/site_utils/cleanup_tko_db.py
index 6718e32..e8698de 100755
--- a/site_utils/cleanup_tko_db.py
+++ b/site_utils/cleanup_tko_db.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 # Copyright 2017 The Chromium Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
 # found in the LICENSE file.
diff --git a/site_utils/cloud_console_client_unittest.py b/site_utils/cloud_console_client_unittest.py
index c9332f1..c669619 100644
--- a/site_utils/cloud_console_client_unittest.py
+++ b/site_utils/cloud_console_client_unittest.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 # Copyright 2017 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
 # found in the LICENSE file.
diff --git a/site_utils/control_file_preprocessor.py b/site_utils/control_file_preprocessor.py
index e576d7a..c5c1db3 100755
--- a/site_utils/control_file_preprocessor.py
+++ b/site_utils/control_file_preprocessor.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 #
 # Copyright (c) 20123 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
diff --git a/site_utils/create_attr_whitelist.py b/site_utils/create_attr_whitelist.py
index 98cb406..6a9948d 100755
--- a/site_utils/create_attr_whitelist.py
+++ b/site_utils/create_attr_whitelist.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 
 # Copyright (c) 2015 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
diff --git a/site_utils/db_replica_checker.py b/site_utils/db_replica_checker.py
index ab52137..2da6b6b 100755
--- a/site_utils/db_replica_checker.py
+++ b/site_utils/db_replica_checker.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 #
 # Copyright 2010 Google Inc. All Rights Reserved.
 
diff --git a/site_utils/deploy_server.py b/site_utils/deploy_server.py
index 8653667..c30e881 100755
--- a/site_utils/deploy_server.py
+++ b/site_utils/deploy_server.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 
 from __future__ import print_function
 
diff --git a/site_utils/deploy_server_local.py b/site_utils/deploy_server_local.py
index fcc221d..4beb3d7 100755
--- a/site_utils/deploy_server_local.py
+++ b/site_utils/deploy_server_local.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 # Copyright (c) 2014 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
 # found in the LICENSE file.
diff --git a/site_utils/deploy_server_local_unittest.py b/site_utils/deploy_server_local_unittest.py
index 0e2bf94..503650a 100755
--- a/site_utils/deploy_server_local_unittest.py
+++ b/site_utils/deploy_server_local_unittest.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 # Copyright (c) 2014 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
 # found in the LICENSE file.
diff --git a/site_utils/deployment/cmdparse_unittest.py b/site_utils/deployment/cmdparse_unittest.py
index 21b6dd6..1957b19 100755
--- a/site_utils/deployment/cmdparse_unittest.py
+++ b/site_utils/deployment/cmdparse_unittest.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 
 import contextlib
 import sys
diff --git a/site_utils/deployment/deploy.py b/site_utils/deployment/deploy.py
index dc16f1a..fda427a 100755
--- a/site_utils/deployment/deploy.py
+++ b/site_utils/deployment/deploy.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
 # Copyright 2015 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
 # found in the LICENSE file.
diff --git a/site_utils/deployment/install.py b/site_utils/deployment/install.py
index ae6ae1f..c22b8a6 100644
--- a/site_utils/deployment/install.py
+++ b/site_utils/deployment/install.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
 # Copyright 2015 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
 # found in the LICENSE file.
diff --git a/site_utils/deployment/prepare/dut.py b/site_utils/deployment/prepare/dut.py
index 0490efd..ec2134a 100644
--- a/site_utils/deployment/prepare/dut.py
+++ b/site_utils/deployment/prepare/dut.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
 # Copyright 2019 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
 # found in the LICENSE file.
diff --git a/site_utils/diagnosis_utils.py b/site_utils/diagnosis_utils.py
index 5827328..79ab256 100755
--- a/site_utils/diagnosis_utils.py
+++ b/site_utils/diagnosis_utils.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 #
 # Copyright (c) 2014 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
diff --git a/site_utils/diagnosis_utils_unittest.py b/site_utils/diagnosis_utils_unittest.py
index 1a3e02d..da330a2 100755
--- a/site_utils/diagnosis_utils_unittest.py
+++ b/site_utils/diagnosis_utils_unittest.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
 # Copyright 2016 The Chromium Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
 # found in the LICENSE file.
diff --git a/site_utils/dump_suite_report.py b/site_utils/dump_suite_report.py
index 9b39b44..419028c 100755
--- a/site_utils/dump_suite_report.py
+++ b/site_utils/dump_suite_report.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
 # Copyright 2016 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
 # found in the LICENSE file.
diff --git a/site_utils/dump_to_cloudsql.py b/site_utils/dump_to_cloudsql.py
index 6d1ae91..4e15f25 100755
--- a/site_utils/dump_to_cloudsql.py
+++ b/site_utils/dump_to_cloudsql.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 #
 # Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
diff --git a/site_utils/dut_mon.py b/site_utils/dut_mon.py
index 6e9a84b..d64b986 100755
--- a/site_utils/dut_mon.py
+++ b/site_utils/dut_mon.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
 # Copyright 2018 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
 # found in the LICENSE file.
diff --git a/site_utils/dut_status.py b/site_utils/dut_status.py
index da2b1ea..930d409 100755
--- a/site_utils/dut_status.py
+++ b/site_utils/dut_status.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
 # Copyright 2014 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
 # found in the LICENSE file.
diff --git a/site_utils/dut_status_unittest.py b/site_utils/dut_status_unittest.py
index b15a3a4..2c59a5a 100644
--- a/site_utils/dut_status_unittest.py
+++ b/site_utils/dut_status_unittest.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
 # Copyright 2014 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
 # found in the LICENSE file.
diff --git a/site_utils/generate_test_report b/site_utils/generate_test_report
index 8d54c16..2b79509 100755
--- a/site_utils/generate_test_report
+++ b/site_utils/generate_test_report
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
 # found in the LICENSE file.
diff --git a/site_utils/gmail_lib.py b/site_utils/gmail_lib.py
index 7029de6..08db5cd 100755
--- a/site_utils/gmail_lib.py
+++ b/site_utils/gmail_lib.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 # Copyright 2015 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
 # found in the LICENSE file.
diff --git a/site_utils/gs_offloader.py b/site_utils/gs_offloader.py
index 270c920..8319a01 100755
--- a/site_utils/gs_offloader.py
+++ b/site_utils/gs_offloader.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 #
 # Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
diff --git a/site_utils/gs_offloader_unittest.py b/site_utils/gs_offloader_unittest.py
index 0ee49cf..9bc8ac7 100755
--- a/site_utils/gs_offloader_unittest.py
+++ b/site_utils/gs_offloader_unittest.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 # Copyright 2016 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
 # found in the LICENSE file.
diff --git a/site_utils/kill_slow_queries.py b/site_utils/kill_slow_queries.py
index 62d43d9..29872e9 100755
--- a/site_utils/kill_slow_queries.py
+++ b/site_utils/kill_slow_queries.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 # Copyright 2016 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
 # found in the LICENSE file.
diff --git a/site_utils/lab_inventory.py b/site_utils/lab_inventory.py
index 0bd7610..31a29a5 100755
--- a/site_utils/lab_inventory.py
+++ b/site_utils/lab_inventory.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
 # Copyright 2015 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
 # found in the LICENSE file.
diff --git a/site_utils/lab_inventory_unittest.py b/site_utils/lab_inventory_unittest.py
index 1d06aa5..d497bf8 100755
--- a/site_utils/lab_inventory_unittest.py
+++ b/site_utils/lab_inventory_unittest.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
 # Copyright 2015 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
 # found in the LICENSE file.
diff --git a/site_utils/label_cleaner.py b/site_utils/label_cleaner.py
index 2113fc1..93de028 100755
--- a/site_utils/label_cleaner.py
+++ b/site_utils/label_cleaner.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 #
 # Copyright (c) 2015 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
diff --git a/site_utils/lxc/base_image_unittest.py b/site_utils/lxc/base_image_unittest.py
index 1d7ca33..3be4fa6 100755
--- a/site_utils/lxc/base_image_unittest.py
+++ b/site_utils/lxc/base_image_unittest.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 # Copyright 2017 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
 # found in the LICENSE file.
diff --git a/site_utils/lxc/container_bucket_unittest.py b/site_utils/lxc/container_bucket_unittest.py
index 6092257..a3c311f 100755
--- a/site_utils/lxc/container_bucket_unittest.py
+++ b/site_utils/lxc/container_bucket_unittest.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 # Copyright 2017 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
 # found in the LICENSE file.
diff --git a/site_utils/lxc/container_factory_unittest.py b/site_utils/lxc/container_factory_unittest.py
index d06180e..8f00155 100755
--- a/site_utils/lxc/container_factory_unittest.py
+++ b/site_utils/lxc/container_factory_unittest.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 # Copyright 2017 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
 # found in the LICENSE file.
diff --git a/site_utils/lxc/container_unittest.py b/site_utils/lxc/container_unittest.py
index 0ec7cd9..e3f1ff7 100755
--- a/site_utils/lxc/container_unittest.py
+++ b/site_utils/lxc/container_unittest.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 # Copyright 2017 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
 # found in the LICENSE file.
diff --git a/site_utils/lxc/lxc_config_unittest.py b/site_utils/lxc/lxc_config_unittest.py
index 88af821..0da8f54 100755
--- a/site_utils/lxc/lxc_config_unittest.py
+++ b/site_utils/lxc/lxc_config_unittest.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
 # Copyright 2015 The Chromium Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
 # found in the LICENSE file.
diff --git a/site_utils/lxc/lxc_functional_test.py b/site_utils/lxc/lxc_functional_test.py
index ef15196..a7c34b4 100755
--- a/site_utils/lxc/lxc_functional_test.py
+++ b/site_utils/lxc/lxc_functional_test.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 # Copyright 2015 The Chromium Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
 # found in the LICENSE file.
diff --git a/site_utils/lxc/shared_host_dir_unittest.py b/site_utils/lxc/shared_host_dir_unittest.py
index 2ac1f2d..7472d49 100755
--- a/site_utils/lxc/shared_host_dir_unittest.py
+++ b/site_utils/lxc/shared_host_dir_unittest.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 # Copyright 2017 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
 # found in the LICENSE file.
diff --git a/site_utils/lxc/unittest_cleanup.py b/site_utils/lxc/unittest_cleanup.py
index fe5e5d4..45ecd6e 100644
--- a/site_utils/lxc/unittest_cleanup.py
+++ b/site_utils/lxc/unittest_cleanup.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 # Copyright 2017 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
 # found in the LICENSE file.
diff --git a/site_utils/lxc/zygote_unittest.py b/site_utils/lxc/zygote_unittest.py
index bbb95da..ea80d49 100755
--- a/site_utils/lxc/zygote_unittest.py
+++ b/site_utils/lxc/zygote_unittest.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 # Copyright 2017 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
 # found in the LICENSE file.
diff --git a/site_utils/lxc_cleanup.py b/site_utils/lxc_cleanup.py
index 5c49ca8..954bc0a 100755
--- a/site_utils/lxc_cleanup.py
+++ b/site_utils/lxc_cleanup.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
 # Copyright 2015 The Chromium Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
 # found in the LICENSE file.
diff --git a/site_utils/mysql_bootstrap.py b/site_utils/mysql_bootstrap.py
index 9383121..a5b3cad 100755
--- a/site_utils/mysql_bootstrap.py
+++ b/site_utils/mysql_bootstrap.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 # Copyright (c) 2014 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
 # found in the LICENSE file.
diff --git a/site_utils/perf_compare.py b/site_utils/perf_compare.py
index bfe2d57..2aece6c 100644
--- a/site_utils/perf_compare.py
+++ b/site_utils/perf_compare.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
 # Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
 # found in the LICENSE file.
diff --git a/site_utils/perf_csv_uploader.py b/site_utils/perf_csv_uploader.py
index 916bd9e..1247cfd 100755
--- a/site_utils/perf_csv_uploader.py
+++ b/site_utils/perf_csv_uploader.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
 
 # Copyright 2016 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
diff --git a/site_utils/rpc_flight_recorder.py b/site_utils/rpc_flight_recorder.py
index 72e41d6..b663a46 100755
--- a/site_utils/rpc_flight_recorder.py
+++ b/site_utils/rpc_flight_recorder.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
 # Copyright 2017 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
 # found in the LICENSE file.
diff --git a/site_utils/rpc_logserver.py b/site_utils/rpc_logserver.py
index dd74457..ce7518e 100755
--- a/site_utils/rpc_logserver.py
+++ b/site_utils/rpc_logserver.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 #
 # Copyright (c) 2015 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
diff --git a/site_utils/rpm_control_system/dli.py b/site_utils/rpm_control_system/dli.py
index 9c01ea6..76ce7c7 100644
--- a/site_utils/rpm_control_system/dli.py
+++ b/site_utils/rpm_control_system/dli.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 #pylint: disable-msg=C0111
 import BeautifulSoup,optparse
 
diff --git a/site_utils/rpm_control_system/frontend_server.py b/site_utils/rpm_control_system/frontend_server.py
index d18f0ed..499eeb2 100755
--- a/site_utils/rpm_control_system/frontend_server.py
+++ b/site_utils/rpm_control_system/frontend_server.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 # Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
 # found in the LICENSE file.
diff --git a/site_utils/rpm_control_system/frontend_server_unittest.py b/site_utils/rpm_control_system/frontend_server_unittest.py
index 83a2be8..9c48b84 100755
--- a/site_utils/rpm_control_system/frontend_server_unittest.py
+++ b/site_utils/rpm_control_system/frontend_server_unittest.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 # Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
 # found in the LICENSE file.
diff --git a/site_utils/rpm_control_system/rpm_client.py b/site_utils/rpm_control_system/rpm_client.py
index 249b2a2..99aab18 100755
--- a/site_utils/rpm_control_system/rpm_client.py
+++ b/site_utils/rpm_control_system/rpm_client.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 # Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
 # found in the LICENSE file.
diff --git a/site_utils/rpm_control_system/rpm_controller_unittest.py b/site_utils/rpm_control_system/rpm_controller_unittest.py
index ebf858a..9f704be 100755
--- a/site_utils/rpm_control_system/rpm_controller_unittest.py
+++ b/site_utils/rpm_control_system/rpm_controller_unittest.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 # Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
 # found in the LICENSE file.
diff --git a/site_utils/rpm_control_system/rpm_dispatcher.py b/site_utils/rpm_control_system/rpm_dispatcher.py
index 7c388a9..44e6b62 100755
--- a/site_utils/rpm_control_system/rpm_dispatcher.py
+++ b/site_utils/rpm_control_system/rpm_dispatcher.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 # Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
 # found in the LICENSE file.
diff --git a/site_utils/rpm_control_system/rpm_dispatcher_unittest.py b/site_utils/rpm_control_system/rpm_dispatcher_unittest.py
index 9793c23..a90e8a3 100755
--- a/site_utils/rpm_control_system/rpm_dispatcher_unittest.py
+++ b/site_utils/rpm_control_system/rpm_dispatcher_unittest.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 # Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
 # found in the LICENSE file.
diff --git a/site_utils/rpm_control_system/utils_unittest.py b/site_utils/rpm_control_system/utils_unittest.py
index 1785140..5bc4d1d 100755
--- a/site_utils/rpm_control_system/utils_unittest.py
+++ b/site_utils/rpm_control_system/utils_unittest.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 # Copyright (c) 2013 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
 # found in the LICENSE file.
diff --git a/site_utils/run_suite.py b/site_utils/run_suite.py
index 1670ccd..62d2db9 100755
--- a/site_utils/run_suite.py
+++ b/site_utils/run_suite.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 #
 # Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
diff --git a/site_utils/run_suite_unittest.py b/site_utils/run_suite_unittest.py
index cf474df..4268e5f 100755
--- a/site_utils/run_suite_unittest.py
+++ b/site_utils/run_suite_unittest.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 # Copyright (c) 2014 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
 # found in the LICENSE file.
diff --git a/site_utils/seed_test_attr.py b/site_utils/seed_test_attr.py
index 589adb3..3cac1ce 100644
--- a/site_utils/seed_test_attr.py
+++ b/site_utils/seed_test_attr.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 
 # Copyright (c) 2015 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
diff --git a/site_utils/set_tree_status.py b/site_utils/set_tree_status.py
index d140eb7..9a9c302 100755
--- a/site_utils/set_tree_status.py
+++ b/site_utils/set_tree_status.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
 # Copyright (c) 2011 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
 # found in the LICENSE file.
diff --git a/site_utils/stable_images/assign_stable_images.py b/site_utils/stable_images/assign_stable_images.py
index 7098ea9..3287404 100755
--- a/site_utils/stable_images/assign_stable_images.py
+++ b/site_utils/stable_images/assign_stable_images.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 # Copyright 2016 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
 # found in the LICENSE file.
diff --git a/site_utils/stable_images/stable_version.py b/site_utils/stable_images/stable_version.py
index 809edc9..eed4eb0 100755
--- a/site_utils/stable_images/stable_version.py
+++ b/site_utils/stable_images/stable_version.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 # Copyright 2018 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
 # found in the LICENSE file.
diff --git a/site_utils/stats/apache_error_log_metrics.py b/site_utils/stats/apache_error_log_metrics.py
index c9db698..3617ad9 100755
--- a/site_utils/stats/apache_error_log_metrics.py
+++ b/site_utils/stats/apache_error_log_metrics.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
 
 # Copyright 2017 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
diff --git a/site_utils/stats/mysql_stats.py b/site_utils/stats/mysql_stats.py
index aeeb63d..8c9e766 100755
--- a/site_utils/stats/mysql_stats.py
+++ b/site_utils/stats/mysql_stats.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 
 # Copyright 2016 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
diff --git a/site_utils/suite_enumerator.py b/site_utils/suite_enumerator.py
index ea80d9a..ab352ed 100755
--- a/site_utils/suite_enumerator.py
+++ b/site_utils/suite_enumerator.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 #
 # Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
diff --git a/site_utils/suite_preprocessor.py b/site_utils/suite_preprocessor.py
index 05cb475..99e78ca 100755
--- a/site_utils/suite_preprocessor.py
+++ b/site_utils/suite_preprocessor.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 #
 # Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
diff --git a/site_utils/sync_cloudsql_access.py b/site_utils/sync_cloudsql_access.py
index 85a0fe6..215f9fa 100755
--- a/site_utils/sync_cloudsql_access.py
+++ b/site_utils/sync_cloudsql_access.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
 
 # Copyright 2015 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
diff --git a/site_utils/test_push.py b/site_utils/test_push.py
index 8989526..f1f1fb6 100755
--- a/site_utils/test_push.py
+++ b/site_utils/test_push.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 #
 # Copyright (c) 2013 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
diff --git a/site_utils/test_push_unittest.py b/site_utils/test_push_unittest.py
index 1ed34a9..32f353f 100755
--- a/site_utils/test_push_unittest.py
+++ b/site_utils/test_push_unittest.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 # Copyright (c) 2013 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
 # found in the LICENSE file.
diff --git a/site_utils/test_runner_utils_unittest.py b/site_utils/test_runner_utils_unittest.py
index 46be7b3..c33a959 100755
--- a/site_utils/test_runner_utils_unittest.py
+++ b/site_utils/test_runner_utils_unittest.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 # Copyright 2015 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
 # found in the LICENSE file.
diff --git a/site_utils/test_that.py b/site_utils/test_that.py
index 0c8c00c..9ccdf72 100755
--- a/site_utils/test_that.py
+++ b/site_utils/test_that.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 # Copyright (c) 2013 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
 # found in the LICENSE file.
diff --git a/site_utils/test_that_unittest.py b/site_utils/test_that_unittest.py
index 050bf0e..5fdb086 100755
--- a/site_utils/test_that_unittest.py
+++ b/site_utils/test_that_unittest.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 # Copyright (c) 2013 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
 # found in the LICENSE file.
diff --git a/tko/compose_query.cgi b/tko/compose_query.cgi
index 62d3da1..4752eea 100755
--- a/tko/compose_query.cgi
+++ b/tko/compose_query.cgi
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 
 """
 Selects all rows and columns that satisfy the condition specified
diff --git a/tko/db_unittest.py b/tko/db_unittest.py
index 557f32e..deda51d 100755
--- a/tko/db_unittest.py
+++ b/tko/db_unittest.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 
 import sys
 import unittest
diff --git a/tko/delete_job_results b/tko/delete_job_results
index f747510..8d301bf 100755
--- a/tko/delete_job_results
+++ b/tko/delete_job_results
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 import os, sys, shutil
 thisdir = os.path.dirname(os.path.abspath(sys.argv[0]))
 sys.path.insert(0, os.path.abspath(os.path.join(thisdir, '../tko')))
diff --git a/tko/job_serializer.py b/tko/job_serializer.py
index b7fa0f1..1d975f8 100755
--- a/tko/job_serializer.py
+++ b/tko/job_serializer.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 
 """A script that provides convertion between models.job and a protocol
 buffer object.
diff --git a/tko/job_serializer_unittest.py b/tko/job_serializer_unittest.py
index b59ddab..ddbb5b5 100755
--- a/tko/job_serializer_unittest.py
+++ b/tko/job_serializer_unittest.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 
 """Unittests for the JobSerializer class.
 
diff --git a/tko/jsonp_fetcher.cgi b/tko/jsonp_fetcher.cgi
index ffb4d65..68267c5 100755
--- a/tko/jsonp_fetcher.cgi
+++ b/tko/jsonp_fetcher.cgi
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 
 import cgi, traceback, urllib2
 import common
diff --git a/tko/parsers/test/execute_parser.py b/tko/parsers/test/execute_parser.py
index 3f6945d..2bdd84e 100755
--- a/tko/parsers/test/execute_parser.py
+++ b/tko/parsers/test/execute_parser.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 """Reexecute parser in scenario and store the result at specified tag.
 """
 
diff --git a/tko/parsers/test/new_scenario.py b/tko/parsers/test/new_scenario.py
index 134626e..f72d38c 100755
--- a/tko/parsers/test/new_scenario.py
+++ b/tko/parsers/test/new_scenario.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 """Create new scenario test instance from an existing results directory.
 
 This automates creation of regression tests for the results parsers.
diff --git a/tko/parsers/test/templates/base.py b/tko/parsers/test/templates/base.py
index 15f4360..1a8a80a 100755
--- a/tko/parsers/test/templates/base.py
+++ b/tko/parsers/test/templates/base.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 """
 This is not meant to be executed unless copied into a
 scenario package and renamed with a _unittest suffix.
diff --git a/tko/parsers/version_0_unittest.py b/tko/parsers/version_0_unittest.py
index 30d1dd6..0490b72 100755
--- a/tko/parsers/version_0_unittest.py
+++ b/tko/parsers/version_0_unittest.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 
 import unittest
 
diff --git a/tko/parsers/version_1_unittest.py b/tko/parsers/version_1_unittest.py
index 3af5563..8477573 100755
--- a/tko/parsers/version_1_unittest.py
+++ b/tko/parsers/version_1_unittest.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 
 import datetime, time, unittest
 
diff --git a/tko/perf_upload/perf_uploader_unittest.py b/tko/perf_upload/perf_uploader_unittest.py
index 3565d53..8a74dcf 100644
--- a/tko/perf_upload/perf_uploader_unittest.py
+++ b/tko/perf_upload/perf_uploader_unittest.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 
 """Unit tests for the perf_uploader.py module.
 
diff --git a/tko/query_history.cgi b/tko/query_history.cgi
index 627238d..bfc90f1 100755
--- a/tko/query_history.cgi
+++ b/tko/query_history.cgi
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 
 import sys, os
 import common
diff --git a/tko/retrieve_logs.cgi b/tko/retrieve_logs.cgi
index c7433cb..1e488de 100755
--- a/tko/retrieve_logs.cgi
+++ b/tko/retrieve_logs.cgi
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 
 import cgi, os, socket, sys, urllib2
 import common
diff --git a/tko/save_query.cgi b/tko/save_query.cgi
index d651cf3..0c1bcc1 100755
--- a/tko/save_query.cgi
+++ b/tko/save_query.cgi
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 
 import os, cgi, cgitb, time, urllib
 import db, unique_cookie
diff --git a/tko/status_lib_unittest.py b/tko/status_lib_unittest.py
index e4775b7..4b8cc41 100755
--- a/tko/status_lib_unittest.py
+++ b/tko/status_lib_unittest.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 
 import unittest
 import common
diff --git a/tko/test.cgi b/tko/test.cgi
index 4b4f668..4fbee9f 100755
--- a/tko/test.cgi
+++ b/tko/test.cgi
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 """
 Further display the tests in a matrix of the form tests X machines
 to help understand the results selected from the previous form.
diff --git a/tko/utils_unittest.py b/tko/utils_unittest.py
index 7d18407..790d7fb 100755
--- a/tko/utils_unittest.py
+++ b/tko/utils_unittest.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 
 import os, unittest, time, datetime, itertools
 
diff --git a/utils/build_externals.py b/utils/build_externals.py
index bb350dd..34f3790 100755
--- a/utils/build_externals.py
+++ b/utils/build_externals.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 #
 # Please keep this code python 2.4 compatible and standalone.
 
diff --git a/utils/compile_gwt_clients.py b/utils/compile_gwt_clients.py
index 22478cf..be12f37 100755
--- a/utils/compile_gwt_clients.py
+++ b/utils/compile_gwt_clients.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python2
 import common
 import sys, os, shutil, optparse, logging
 from autotest_lib.client.common_lib import error, utils
diff --git a/utils/download_creds.py b/utils/download_creds.py
index 233836d..6328811 100755
--- a/utils/download_creds.py
+++ b/utils/download_creds.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 
 """
 Fetch credentials used by lab tools from Google storage.
diff --git a/utils/modelviz/generate_schema_diagrams.py b/utils/modelviz/generate_schema_diagrams.py
index 42b644b..c770580 100755
--- a/utils/modelviz/generate_schema_diagrams.py
+++ b/utils/modelviz/generate_schema_diagrams.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
 
 """
 Generates schema diagrams for Django apps.  Just run the script with no
diff --git a/utils/reverify_repair_failed.py b/utils/reverify_repair_failed.py
index 4e305ed..48679df 100755
--- a/utils/reverify_repair_failed.py
+++ b/utils/reverify_repair_failed.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 
 """
 Send all Repair Failed hosts that the user running this script has access to
diff --git a/utils/site_check_dut_usage.py b/utils/site_check_dut_usage.py
index 0c1d941..6c5c067 100755
--- a/utils/site_check_dut_usage.py
+++ b/utils/site_check_dut_usage.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 
 # Copyright (c) 2011 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
diff --git a/utils/summarize_loadtest.py b/utils/summarize_loadtest.py
index 8ab35b5..65bd327 100755
--- a/utils/summarize_loadtest.py
+++ b/utils/summarize_loadtest.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 
 # Copyright 2017 The Chromium OS Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
diff --git a/utils/test_importer.py b/utils/test_importer.py
index 82f2dec..95ad356 100755
--- a/utils/test_importer.py
+++ b/utils/test_importer.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 #
 # Copyright 2008 Google Inc. All Rights Reserved.
 """
diff --git a/utils/tko_publish.py b/utils/tko_publish.py
index deaae56..9ed505d 100755
--- a/utils/tko_publish.py
+++ b/utils/tko_publish.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 """
 This script will scan an autotest server results directory for job result
 directories that have completed and that have not yet been published on