Support python 2.5 for client

* Use simplejson instead of json module
* Add with feature in Python 2.5