def populate_cards(): global cards cards = map(lambda c: Model.card(c).get(), Cards.get_cards()) random.shuffle(cards)