update: Fixed typos and removed dead code

* Fixed a few typos from the last commit and removed ping from
  example.py

Signed-off-by: mr.Shu <mr@shu.io>