virttest: fix compatibility with python2.4.

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