Some improvements to gncinvoice_jinja.py