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