This example shows how you can use py-terminal and the standard print() to display debug messages which logs what's happening in your app.
py-terminal
print()
Graphics and style freely inspired by this Tic-tac-toe in JavaScript