Update outdated GRASS script

* Comply to PEP 8 / GRASS style guide
* Output all cumulative variables