def pick_random_bronze_or_better_oa_award():
    slugs = get_slugs()

    random.shuffle(slugs)
    for slug in slugs:
        awards = get_awards(slug)
        oa_award = awards[0]  # this won't always be true
        print "checking ", slug, "level", oa_award["level"]
        if oa_award["level"] < 4:
            print "and we have a winner: ", slug
            break

    return
dataset/ETHPy150Open Impactstory/total-impact-webapp/scripts/all_profiles.py/pick_random_bronze_or_better_oa_award/original