Python Substring After Stringent Responses