class Vowels(object): def __init__(self, vowelList): self.vowelList = vowelList lettersList = self.vowelList.s.split(",") self.vowelList = [letter for letter in self.lettersList if letter in 'aeiou']