def filter(items):
    for item in items:
        if (random.random() > 0.3):
            (yield item)
def filter(items):
    for item in items:
        if (random.random() > 0.3):
            (yield item)