add element to a json in python,data[0]['f'] = var