virttest: fix compatibility with python2.4.

Signed-off-by: Jiří Župka <jzupka@redhat.com>
Merge pull request #1679 from jzupka/fix_compatibility_python24

virttest: fix compatibility with python2.4.