This is one of the problems recently discussed in vim-dev and in some other topics. This behavior requires patching vim source to have eventloop in a separate thread, but there is no patch for this yet.
Currently there is no way to do this. Some running python scripts may be interrupted by sending a SIGINT
, but not all.