lightcurve.py working