def ask_yesno(question, default_yes=True):
    """ prompt the user for a yes/no question, when yes return true, false otherwise"""
    val = input(f"{question} (y/n)? [{'y' if default_yes else 'n'}]: ")
    if val.strip().lower() in ['yes', 'y']:
        return True
    return False
