I just added a line on the script, with no prior expertise on python

:
write("Grand total", my.get("paidOut", 0) + my.get("immatureBalance", 0) + my.get("unexchangedBalance", 0) + my.get("bitcoinBalance", 0), mbtc)
This tells the "grand total" value of mined bitcoins, a nice extra information for new miners.