Abstract away the logic of Mahjong games (for oh, it is complicated!) Only worry about the representation.
>>> import mahjong
>>> game = mahjong.Game()
>>> question = game.play()
>>> next_question = question.answer(...)
>>> ...
For full usage see the docs: https://mahjong.rtfd.io (once it's up) or https://github.com/Kenny2github/mahjong/wiki until then.