implemented simple multithreaded pubsub using pydispatcher