Working version for the pubsub library and stress test module (tests/t1.py)