code: def availability_rtf() -> bool:
      
      unrtf = tools['unrtf']
      if unrtf:
          return True
      elif pyth:
          log.warning("RTF conversion: unrtf missing; "
                      "using pyth (less efficient)")
          return True
      else:
          return False
docs: Is an RTF processor available?