code: def has_word ():
      
      if not has_win32com:
          return False
      try:
          import _winreg as winreg
      except ImportError:
          import winreg
      try:
          key = winreg.OpenKey(winreg.HKEY_CLASSES_ROOT, "Word.Application")
          winreg.CloseKey(key)
          return True
      except (EnvironmentError, ImportError):
          pass
      return False
docs: Determine if Word is available on the current system.