class Filter(object):

    def __init__(self, content):
        self.content = content

def __call__(self, someParam):
    self.someParam = someParam
for line in self.content:
    if line == someParam:
        yield line
python: attributes on a generator object