processes = WMI.InstancesOf('Win32_Process')
process_list = [(p.Properties_('ProcessID').Value, p.Properties_('Name').
    Value) for p in processes]
Cross-platform way to get PIDs by process name in python