Why use strings and not dictionary, and when needed `json.dumps` ?