virt: Repairs typo new cart config.

Repairs some typo and some incompatibility with python 2.4

Signed-off-by: Jiří Župka <jzupka@redhat.com>