(gentoo) fix segmentation fault in python tests (bug #197043)