[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 <[email protected]>
Commit-Ready: ChromeOS CL Exonerator Bot <[email protected]>
Legacy-Commit-Queue: Commit Bot <[email protected]>
Reviewed-by: Vadim Bendebury <[email protected]>
Reviewed-by: Allen Li <[email protected]>
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__ = "[email protected] (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__ = '[email protected] (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