Better code in decks.py