Manualy injected code from arjolys spare-label_binarizer branch for label.py