def normalize_value(val):
    """
    Normalize strings with booleans into Python types.
    """
    if val is not None:
        if val.lower() == 'false':
            val = False
        elif val.lower() == 'true':
            val = True
    return val
