def confirm_action(question, force=False):
    """confirm if the user wants to perform a certain action

       Parameters
       ==========
       question: the question that will be asked
       force: if the user wants to skip the prompt
    """
    if force is True:
        return True
    response = input(question)
    while len(response) < 1 or response[0].lower().strip() not in 'ynyesno':
        response = input('Please answer yes or no: ')
    if response[0].lower().strip() in 'no':
        return False
    return True
