A port of node.js's EventEmitter to python