[libvirt] [PATCH v3 19/22] tests: rewrite qemu capability grouper in Python