[libvirt] [PATCH] python: keep consistent handling of Python integer conversion