removed second ping function from telnet.py