Added example for time-shift and added time-shift in events.py