I'm using python 2. 6.
Sometimes there become several instances of a certain process open, and that process causes some problems in itself.
I want to be able to programatically detect that.
If that doesn't work try to force kill a process from the command prompt, using the following command:
Taskkill /f /im process. exe /f will force termination of the process, and /im means.