[libvirt] [PATCH v3 07/22] build-aux: rewrite header ifdef checker in Python