added processReply function and cleanup pingc.py