APY-31: Update the code from Ally-Py tutorial

Notice that we have some changes to the run-time environment, see
https://github.com/msat-cont/Ally-Py/tree/apy-31-tutorial-code/examples