test/json-compare.py: Use json module from Python >=2.6 or simplejson