Update weasyprint's python api