Using Popen to execute and capture output of traceroute command