You might want to read the FAQ Forum to learn about KXRPC.

Also, segemnt your code and test each segment, use DEBUG ON in appropriate locations to see why it is so slow. Basically, there's something seriosuly wrong with either your network or your script.
_________________________
There are two types of vessels, submarines and targets.