Replaced command line kill with python SIGKILL using Popen.kill()