python 2.5 compatibility

i'm so ashamed, but I need this for a completely terrible reason.

perhaps it would be of benefit for others.