Create decode_events.py