Backward comatibility with at least Python 2.7.3