fix import error in python 2.5

3.0.x are the last versions to support python 2.5.  Erroneous import was introduced with a fix for issue #1107