Avoid truncating python version number when running sanity test
Avoid truncating python version number when running sanity test

The current code assumes the version number string will be only three
characters long, which fails with "3.10".

Signed-off-by: Daniel P. Berrangé <bb938cf255e055ff3507f2627d214e8e62118fcf@redhat.com>

libvirt/libvirt-python,libvirt/libvirt-python,libvirt/libvirt-python