cleaned the code in sumovis.py