Fix small incompatibility with Python 2.6