using threading.Event to pause/resume timelapses