code: def runCommand(cmd, timeout=None):
      
      p = subprocess.Popen(cmd, shell=True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
      output = ''
  
      out, err = p.communicate()
      p.wait(timeout)
  
      return (out, err)
docs: run shell command
  
  	@param cmd: command to execute
  	@param timeout: timeout for command execution
  
  	@return: (return code from command, command output)