added endpoints
got ping.py from http://searchcode.com/codesearch/view/12612407