code: def check_output(args):
      
      log.debug('run: %s', args)
      out = subprocess.check_output(args=args).decode('utf-8')
      log.debug('out: %r', out)
      return out
docs: Runs command and returns the output as string.