def yes_or_no(question):
    """ Get a yes or no input to a question
    :param question: yes or no question
    :return: boolean for response
    """
    reply = str(input(question+' (y/n): ')).lower().strip()
    if reply[0] == 'y':
        return True
    if reply[0] == 'n':
        return False
    else:
        return yes_or_no("Unexpected response, please enter ")