Improved testing label.py, removed unreachable valueError statement