Updated runningCubedTotal.py

updated runningCubedTotal to function well in github and idle