def promptConfirm(action, default='Y'):
    """
    prompt for a yes/no answer to an action
    """
    ans = input('Really %s (y/n) [%s]? ' % (action, default))
    if str(ans).lower() == default.lower():
        return True
    elif len(str(ans).lower().strip()) == 0:
        return True
    else:
        return False
