Moving event_choices function to conf.py