how can i run an external command asynchronously from python?,p.terminate()