Added pubsub.py for testing pub/sub performance