Update prefixes.py to use coroutines, and add logger property to event