I just looked - nowhere in your “questionForm” is there a definition of “self.names”.
At a guess, are you trying to pass the names in your text area control called “text_area_1”?
If so, you need to pass “self.text_area_1.text”.
Python will look for a class property called “names”, either in the form of a control or a property you yourself have defined. As it is not finding one, you are seeing that error.