merging keyword update with flask formatting