def confirm(prompt='OK to continue? [Y/N] '):
    """
    Ask for Y/N answer.
    returns bool
    """
    answer = ''
    while answer not in ['y', 'n']:
        answer = input(prompt).lower()
    return answer == 'y'
