filter results by given criteria

def filterBy(self, **kwargs):
        ''' filter results by given criteria'''
        criteria = ['seeds', 'size']
        for k, v in kwargs.iteritems():
            if k in criteria:
                self.results = filter(
                    lambda x: getattr(x, k) >= v, self.results)
        return self