def true_or_false_input(true_val, false_val, description="", lower=True):
    """
    Read a string from standard input. And transform into bool val.

    If input equals true_val or false_val, return True or False,
    otherwise read a string againself.

    Parameters
    ----------
    true_val : str
        True word
    false_val : str
        False word
    description : str
        Use like input(description)
    lower : bool
        Transfomr input string to lower case

    Returns
    -------
    true_or_false : bool
        True or False

    """
    while True:
        inputs = input(description)
        if lower:
            inputs = inputs.lower()

        if inputs == true_val:
            return True
        if inputs == false_val:
            return False
        else:
            print('Input {} or {}'.format(true_val, false_val))