Some changes in `lightdata.py`.
Merge branch 'master' into gui-tk