Replace Functions In Python Pdf Generator