Made some modifications to the totalsScripts.py file