def randomize(values):
    def picker():
        return random.choice(values)
    return picker
this is a wrapper that returns a function which when called returns a random value
dataset/ETHPy150Open bitly/asyncmongo/test/sample_app/settings.py/randomize