Split events.py into a series of files in the events package.