I thought in python < 2.7 you had "simplejson" in the stdlib, whereas from 2.7 onwards you had "json". I see now that there's an externally maintained library "simplejson" but I don't think is the same? In any case, what I'm trying to do here is "Use whatever json module is available in the stdlib"