Base source code for the Python end of some game.