Ping Statistics written in Python