Fix libvirt vm for get_uri_with_transport: string.partition(str) is not supported on Python2.4

string.partition(str) is supported only on python2.5 and later.
So get_uri_with_transport will run into exception on old python.
Such as RHEL5.x host.