Fix python scripts in src/tools/

Make sure that:
- shebang is only present for executable files
- shebang is #!/usr/bin/env python
- __main__ is only present for executable files
- file's executable bit is coherent

Also fix EOF LF to be only one.

[email protected]
BUG=105108
TEST=

Review URL: http://codereview.chromium.org/8678023

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@111960 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/tools/bisect-builds.py b/tools/bisect-builds.py
index a4a3f75..6a4d09d 100755
--- a/tools/bisect-builds.py
+++ b/tools/bisect-builds.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
 # Copyright (c) 2011 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.
@@ -45,6 +45,7 @@
 from xml.etree import ElementTree
 import zipfile
 
+
 class PathContext(object):
   """A PathContext is used to carry the information used to construct URLs and
   paths when dealing with the storage server and archives."""
@@ -267,6 +268,7 @@
 
   return (subproc.returncode, stdout, stderr)
 
+
 def AskIsGoodBuild(rev, status, stdout, stderr):
   """Ask the user whether build |rev| is good or bad."""
   # Loop until we get a response that we can parse.
@@ -277,6 +279,7 @@
     if response and response == 'q':
       raise SystemExit()
 
+
 def Bisect(platform,
            good_rev=0,
            bad_rev=0,
@@ -534,5 +537,6 @@
   print 'Built at revision:'
   print BUILD_VIEWVC_URL % first_known_bad_rev
 
+
 if __name__ == '__main__':
   sys.exit(main())