def stringify(value):
    """ Takes variously formatted hex values and outputs them in simple string format """
    out = ''
    if value:
        out = (hex(value) if isinstance(value, int) else value).replace('0x',
            '').upper()
    return out
