def fortran_to_value(fortran_value):
    """Return a Python compatible version of a FORTRAN argument.

    Parameters
    ----------
    fortran_value : str
        A FORTRAN argument.

    Returns
    -------
    value : bool | int | float | str
        A Python friendly representation of the input value.
    """
    if fortran_value == '.true.':
        return True
    elif fortran_value == '.false.':
        return False
    try:
        value = int(fortran_value)
    except ValueError:
        try:
            value = float(fortran_value)
        except ValueError:
            value = fortran_value.strip("'")
    return value
