Logging. Call log(x,y,z) from game.py. Outputs to log.txt