fix exprtools for Python 2.5