Python 2.5.

To comply with Python 2.5, use simplejson when json was not found.
Also, str.format is replaced by % operator.