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