def yes_or_no(message):# {{{
    """prompt for yes or no questions, default is yes
    """
    ans = input(message + ' [y]/n >> ')
    no = ['n', 'N', 'no', 'NO', 'No']
    yes = ['y', 'Y', 'yes', 'YES', 'Yes', '', ' ']
    while True:
        if ans in yes:
            return True
            break
        elif ans in no:
            return False
            break
        else:
            print(f'\'{ans}\' is not a valid answer')
            ans = input('[y]/n >> ')