I been doing research on how to edit PDF using Python and i have found this article: How to Populate Fillable PDF\'s with Python
However there is a problem on
Updating the write function to have keys AP and V fixed the problem for me in preview
pdfrw.PdfDict(AP=data_dict[key], V=data_dict[key])