Pubnub.py converted to Python 3