Changed occurences of != None to is not None as suggested by code review.
Changed names of functions with "artifacts" in the name to "lytaf_events"
for clarity.

Not understood error in when unit test run for remove_lytaf_events_from_lightcurve()