def hex_str_to_int(input_str):
    """
    Converts a string with hex bytes to a numeric value
    """
    try:
        val_to_return = int(input_str, 16)
    except Exception as e:
        val_to_return = 0
        print('Exception converting hex to int: {}'.format(e))
    return val_to_return