libreoffice 4 example result
some more code cleanup,
moved portions of utility code to a new file util.py