take a look at the process.py script at http://rgruet.free.fr/ or just download his rgutils.zip file.
although a little involved, play around with the process.py file and you'll be able to kill off notepad like never before It also helps that notepad is used as an example in the test() def
also checkout the python cookbook as you can enumerate through running processes... i have the code somewhere just a sec... here it is. I altered it a bit but it shows the current running processes, as well as any switches or parametres that they run with.
who knows. might be useful.
aReg = _winreg.ConnectRegistry(None, _winreg.HKEY_LOCAL_MACHINE)
target = r'SOFTWARE\Microsoft\Windows\CurrentVersion\Run'
print "reading from", target
aKey = _winreg.OpenKey(aReg, target)
for i in range(1024):
name,value,type = _winreg.EnumValue(aKey, i)
#type is always 1, so?
print"you have",i,"tasks starting at login"
#print "running closekey's"
hope that helps