Python GnuCash SQL interface