Python: converting a list of dictionaries to json,json.dumps(list)