pre-upload.py: import random

Also, fix white-space.

Change-Id: I3ab627e646d5ac11ad770e6acdfb731f8de1ffe1
(cherry picked from commit 69c843a246f9a8bbf2db6283b3d2d045976b58b4)
diff --git a/pre-upload.py b/pre-upload.py
index 2ff373f..6d81e9d 100644
--- a/pre-upload.py
+++ b/pre-upload.py
@@ -1,3 +1,5 @@
+import random
+
 def main(project_list, **kwargs):
   print ('These projects will be uploaded: %s' %
          ', '.join(project_list))
@@ -7,5 +9,5 @@
   if random.random() <= .5:
     raise Exception('Pre-upload hook failed.  Have a nice day.')
 
-if __name__ == '__main__':                                                       
-  main()    
+if __name__ == '__main__':
+  main()