[libvirt] [PATCH] python: improve conversion validation