Attributeerror Tuple Object Has No Attribute Encode Thoughts