def keyword_confirm(warning_str, keyword):
    """This function prints the warning string, followed by a request to enter
    a keyword. This is modelled on the GitHub feature, where the user is asked
    to enter the full name of the repository before deleting it. It returns
    True or False depending on whether the user typed the correct keyword.
    """
    message_str = ''.join([
        warning_str.strip() + " ",
        "Type the string '%s' to continue, " % keyword.lower(),
        "followed by <ENTER>. Any other input will cancel the action.\n"
    ])
    #result = raw_input(message_str)
    result = input(message_str)
    return (result == keyword)