use stdlib's json module if simplejson is missing

json is available in Python >= 2.6