def yntobool(char):
    """ Interpret a char as Boolean. """
    if char == 'Y':
        return True
    elif char == 'N':
        return False
    else:
        raise Exception('Cannot interpret %s as boolean' % char)
