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