Update lighttest.py

fixed divide by zero error