old_contents: #!/usr/bin/env python
  
  import os
  import re
  import time
  import sys
  from threading import Thread
  
  class testit(Thread):
     def __init__ (self,ip):
        Thread.__init__(self)
        self.ip = ip
        self.status = -1
        self.responsetime = -1
  
     def run(self):
        pingaling = os.popen("ping -q -c2 "+self.ip,"r")
        while 1:
          line = pingaling.readline()
          if not line: break
          igot = re.findall(testit.lifeline,line)
          if igot:
              self.status = int(igot[0])
              line = pingaling.readline()
              restime = re.search(testit.response, line)
              if  restime:
                  self.responsetime = restime.group(1)
  
  testit.lifeline = re.compile(r"(\d) received")
  testit.response = re.compile(r'((\d+(\.\d*)?|\.\d+)([eE][-+]?\d+)?) ms')
  report = ("No response","Partial Response","Alive")
  
  print time.ctime()
  
  pinglist = []
  
  for host in range(1,10):
     ip = "192.168.11."+str(host)
     current = testit(ip)
     pinglist.append(current)
     current.start()
  
  for pingle in pinglist:
     pingle.join()
     print "Status from ",pingle.ip,"is",report[pingle.status],"time:",pingle.responsetime
  
  print time.ctime()
  
  
new_contents: #!/usr/bin/env python
  
  import os
  import re
  import time
  import sys
  from threading import Thread
  
  class testit(Thread):
      def __init__ (self,ip):
          Thread.__init__(self)
          self.ip = ip
          self.status = -1
          self.responsetime = -1
  
      def run(self):
          pingaling = os.popen("ping -q -c2 "+self.ip,"r")
          while 1:
              line = pingaling.readline()
              if not line: break
              igot = re.findall(testit.lifeline,line)
              if igot:
                  self.status = int(igot[0])
                  line = pingaling.readline()
                  restime = re.search(testit.response, line)
                  if  restime:
                      self.responsetime = restime.group(1)
  
  testit.lifeline = re.compile(r"(\d) received")
  testit.response = re.compile(r'((\d+(\.\d*)?|\.\d+)([eE][-+]?\d+)?) ms')
  report = ("No response","Partial Response","Alive")
  
  print time.ctime()
  
  pinglist = []
  
  for host in range(1,10):
      ip = "192.168.11."+str(host)
      current = testit(ip)
      pinglist.append(current)
      current.start()
  
  for pingle in pinglist:
      pingle.join()
      print "Status from ",pingle.ip,"is",report[pingle.status],"time:",pingle.responsetime
  
  print time.ctime()
  
subject: Update indentation to 4 spaces