gnucash report writing in python