title: Can I switch between python 32 bit and python 64 bit during the execution of a program?
body: <p><strong>Requirement:</strong></p>
  
  <p>Uninstall Application from Add remove programs. The code for this requires python 64 bit. My python script from which I want to perform uninstall operation requires python 32 bit as there are DLLs that are compiled using 32 bit python. </p>
  
  <p>Is there anyway I can accomplish this? Is there a possibility to switch between the two architectures of python? I was wondering I can keep the the uninstall script as a separate python module and somehow force it to run using python 64 bit. Possible?</p>
  
  <p>Python experts please help.</p>
  
  <p>Python version : 2.7.12</p>
  
  <p><strong>Structure:</strong></p>
  
  <pre><code>My python application (require 32 bit python)
  
      Uninstall() (require 64 bit python)
  
  My script continues (require 32 bit python)
  </code></pre>
  
  <p><strong>Code for Uninstall()</strong></p>
  
  <pre><code>import pywinauto
  
  pywinauto.Application().Start(r'explorer.exe')
  explorer = pywinauto.Application().Connect(path='explorer.exe')
  
  # Go to "Control Panel -&gt; Programs and Features"
  NewWindow = explorer.Window_(top_level_only=True, active_only=True,     class_name='CabinetWClass')
  try:
      print "hello"
      NewWindow.AddressBandRoot.ClickInput()
      NewWindow.TypeKeys(r'Control Panel\Programs\Programs and Features{ENTER}', with_spaces=True, set_foreground=False)
      ProgramsAndFeatures = explorer.Window_(top_level_only=True, active_only=True, title='Programs and Features', class_name='CabinetWClass')
  
      # Wait while list of programs is loading
      explorer.WaitCPUUsageLower(threshold=5)
  
      item_7z = ProgramsAndFeatures.FolderView.GetItem('7-Zip 9.20 (x64 edition)')
      item_7z.EnsureVisible()
      item_7z.ClickInput(button='right', where='icon')
      explorer.PopupMenu.MenuItem('Uninstall').Click()
  
      Confirmation = explorer.Window_(title='Programs and Features', class_name='#32770', active_only=True)
      if Confirmation.Exists():
          Confirmation.Yes.ClickInput()
          Confirmation.WaitNot('visible')
  
      WindowsInstaller = explorer.Window_(title='Windows Installer', class_name='#32770', active_only=True)
      if WindowsInstaller.Exists():
          WindowsInstaller.WaitNot('visible', timeout=20)
  
      SevenZipInstaller = explorer.Window_(title='7-Zip 9.20 (x64 edition)', class_name='#32770', active_only=True)
      if SevenZipInstaller.Exists():
          SevenZipInstaller.WaitNot('visible', timeout=20)
  
      if '7-Zip 9.20 (x64 edition)' not in     ProgramsAndFeatures.FolderView.Texts():
          print "OK"
  finally:
      NewWindow.Close()
  </code></pre>