More changes to totalsScript.py