added a python function to produce delayed light curves