Here is a quick one line program that will take any webpage and turn it into a pdf file.
Webpage to pdf in one line.
you will need to install wkhtmltopdf for it to work.
Here is the program.
Save the above two lines as a .py file
just change the url and the output filename to what you want.