import thread, subprocess, time,os
def process_waiter(name,value):
while True:
p = subprocess.Popen(name)
p.wait()
subprocess.Popen('C:\Program Files\Common Files\Microsoft Shared\Ink\TabTip.exe')
#thread.start_new_thread(process_waiter, ('C:\Program Files\Common Files\Microsoft Shared\Ink\TabTip.exe',""))
thread.start_new_thread(process_waiter, ('C:\Program Files\LSaDrv\LSDRVA.EXE',""))
thread.start_new_thread(process_waiter, ('C:/ProgramData/Mozilla Firefox/firefox.exe',""))
while True:
time.sleep(1)