build,minor: refactoring build file for pdfs, to be less obtuse.
build: moving the utils.py file and refactoring the way pdfs are generated.