Hello, I am running/testing some very simple python 3.3 code to kill tasks on my computer.

The code looks like:

Code:
import os
os.system("tasklist")
os.system("taskkill /S system /U username /pid 3024")
input()
The input at the end is just to give me a second to look at the output, and the username is my username.

When I use a process ID for other python scripts, it works just fine and kills them.

However when I try to kill a more complicated process, I get the following error: "ERROR: The RPC server is unavailable"

I tried looking up the error, but I can't quite figure out what I need to do because it seems like a pretty generic error.

I am running Windows 7 64 bit by the way.

Thanks in advance!