Fix cros lint errors.

Also move deprecated scripts to the 'deprecated' directory.

BUG=chromiumos:570464
TEST=tested scripts to make sure they still work.

Change-Id: I3442a86d898104591233a0849ea0bafb52ecf1f7
Reviewed-on: https://chrome-internal-review.googlesource.com/244221
Commit-Ready: Caroline Tice <cmtice@google.com>
Tested-by: Caroline Tice <cmtice@google.com>
Reviewed-by: Yunlian Jiang <yunlian@google.com>
diff --git a/command_executer_timeout_test.py b/command_executer_timeout_test.py
index c7c94cb..ba0207e 100755
--- a/command_executer_timeout_test.py
+++ b/command_executer_timeout_test.py
@@ -1,26 +1,27 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 #
 # Copyright 2010 Google Inc. All Rights Reserved.
+"""Timeout test for command_executer."""
+
+from __future__ import print_function
 
 __author__ = 'asharif@google.com (Ahmad Sharif)'
 
-import optparse
-import os
-import re
+import argparse
 import sys
 
-from utils import command_executer
+from cros_utils import command_executer
 
 
 def Usage(parser, message):
-  print 'ERROR: ' + message
+  print('ERROR: %s' % message)
   parser.print_help()
   sys.exit(0)
 
 
 def Main(argv):
-  parser = optparse.OptionParser()
-  options = parser.parse_args(argv)[0]
+  parser = argparse.ArgumentParser()
+  _ = parser.parse_args(argv)
 
   command = 'sleep 1000'
   ce = command_executer.GetCommandExecuter()
@@ -29,4 +30,4 @@
 
 
 if __name__ == '__main__':
-  Main(sys.argv)
+  Main(sys.argv[1:])