Fix backportUnittest for Python 2.7.4