from win32com.client import GetObject
WMI = GetObject('winmgmts:')
processes = WMI.InstancesOf('Win32_Process')
for process in processes:
    print(process.Properties_('Name'))
p = WMI.ExecQuery('select * from Win32_Process where Name="chrome.exe"')
for prop in p[0].Properties_:
    print(prop)
print(p[0].Properties_('ProcessId').Value)
ImportError: No module named win32api, python, even when location of win32api is appended to path