[libvirt] [PATCH v5 16/23] tests: rewrite qemu capability grouper in Python