def ask_user(msg, bypass=False):
    """
    Asks the user yes no questions

    Args:
        msg: question to display
        bypass: Handle passing yes always
    Returns:
        response: boolean indicating whether to proceed or not.
    """
    acceptable = False
    while not acceptable:
        if bypass:
            ans = 'yes'
        else:
            ans = input(msg + ' (y/n)\n')
        if ans.lower() in ['y', 'yes']:
            acceptable = True
            response = True
        elif ans.lower() in ['n', 'no']:
            acceptable = True
            response = False
        else:
            print('Unrecognized answer, please use (y, yes, n, no)')
    return response
