Fix import in labels.py

labels.py needs the logging module