Cards game engine in Python