better processing for Python2.5