how to base64 encode a pdf file in python,"a = open('pdf_reference.pdf', 'rb').read().encode('base64')"