[libvirt] [PATCH v2 21/24] tests: rewrite qemu capability grouper in Python