We need to import weasyprint after poppler.

Otherwise, strange things happen: Segmentation Fault when printing with
poppler

Change-Id: I90c5ff01b4424a9afff6ec0591ed36696ab3cb17