combining into Pubnub.py, added common async unit test method