replace Pubnub.py with own implementation based on plain TCP socket and using http keep-alive to avoid reconnects