libvirt: add type annotations to improve safety

let _ = ... is a bit dangerous if we need the side-effects of ...

Signed-off-by: David Scott <dave.scott@citrix.com>