cloud_libvirt: fix python 3 compatibility for weighted_random_conn
cloud_libvirt: fix python 3 compatibility for weighted_random_conn

Use a key function with `sort` instead of running `sorted` on a dummy list
of tuples containing the weight.

ohmu/poni,ohmu/poni