added lapse.py