python2.5 compatibility

Signed-off-by: Michael Weber <michael@xmw.de>