Python Create Json From Sql To Pdf