Fixed some problems with ping.py