Enhance exception handling, and ensure new-style class for Python 2.x
Fixed possible exception for player ping "ZMBI"