Update classes.py

Fixed error
    logger.debug(" %s %s %s", i, name, hex(value[i]))
TypeError: hex() argument can't be converted to hex