title: Error with win32com.client.GetObject when connecting to SAP GUI
body: <p>Dears,
  first of all this is the first time I ask a question on Stackoverflow so forgive me if I'm not following the right way to do this.</p>
  
  <p>I kindly ask for your help as I'm facing an issue with win32com.
  I'm trying to connect to SAP GUI in order to automate certain tasks.</p>
  
  <pre><code>import win32com.client
  
  SapGuiAuto = win32com.client.GetObject('SAPGUI')
  </code></pre>
  
  <p>I get the following error (until yesterday everything was working fine..):</p>
  
  <pre><code>Traceback (most recent call last):
    File "C:/Users/xxxxx/AppData/Roaming/JetBrains/PyCharmCE2020.1/scratches/PySAPscript.py", line 157, in &lt;module&gt;
      SAP_OP()
    File "C:/Users/xxxxx/AppData/Roaming/JetBrains/PyCharmCE2020.1/scratches/PySAPscript.py", line 18, in SAP_OP
      SapGuiAuto = win32com.client.GetObject('SAPGUI')
    File "C:\Users\xxxxx\PycharmProjects\yyyyyy\venv\lib\site-packages\win32com\client\__init__.py", line 72, in GetObject
      return Moniker(Pathname, clsctx)    
    File "C:\Users\xxxxxx\PycharmProjects\yyyyyyy\venv\lib\site-packages\win32com\client\__init__.py", line 87, in Moniker
      moniker, i, bindCtx = pythoncom.MkParseDisplayName(Pathname)
  pywintypes.com_error: (-2147221020, 'Invalid syntax.', None, None)
  </code></pre>
  
  <p>I've found some documentation about this issue which suggests using pythoncom.CoInitialize():</p>
  
  <p><a href="https://stackoverflow.com/questions/26764978/using-win32com-with-multithreading">Using win32com with multithreading</a></p>
  
  <p>However I can't figure out how to use this function for my purpose.</p>
  
  <p>Thank you for your help!</p>