If /usr/bin/kvm-img and /usr/bin/qemu-img doesn't exist, get_image_utility() will return None and this will try to execute a command called None. I'd recommend updating get_image_utility to error out or just return the default.