An implementation of a deck class

Wrote this to separate a bit the layout from the game logic. Currently
works under both Python2 and Python3.