bootstrap: python-2.4 compatibility

minor changes to support python-2.4.

Change-Id: I85daedd28fdde470d5c5ef84a531b3e08af0f0f0
Signed-off-by: Alon Bar-Lev <alonbl@redhat.com>
Reviewed-on: http://gerrit.ovirt.org/14816
Reviewed-by: Dan Kenigsberg <danken@redhat.com>