[Bug 1195689] libsolv segfault when using python API