I would like to be able to perform a ping and traceroute from within Python without having to execute the corresponding shell commands so I\'d prefer a native python solutio
you might want to check out the scapy package. it's the swiss army knife of network tools for python.