Python script for generating pdf invoices with latex