eval is your friend

at my python dayjob i'm writing a chat protocol. it should be possible to extend the protocol later on by adding new subprotocols (command sets) to achieve this i use listeners for each additional subprotocol.