handle = win32api.OpenProcess(win32con.PROCESS_TERMINATE, 0, pids[0])
win32api.TerminateProcess(handle, 0)
win32api.CloseHandle(handle)
Python 2.6 on Windows: how to terminate subprocess.Popen with "shell=True" argument?