Enable virt module to work with different libvirt connection uris.

This allow to work with all libvirt supported VMs.

Please, review this code as I tried to be as idiomatic as possible but I clearly don't have good python skills :P