fix for issue #10 so that Python2.6 works