def process_file(self):
    self.filename = 'noun.txt'
self.file = open(self.filename, 'r')
self.check_word_type(self, self.filename)
return self.file, self.filename
Check if the filename contains a string Python