python2.5 regression

This fixes a regression introduced in #87 that broke python2.5 compatability