Python port of the extended Node.js EventEmitter approach of https://github.com/asyncly/EventEmitter2.