Question: I'm Building Information Retrieval System that search text in multi files formats,
I have Tried **EPocalipse IFilter** Lirary but it through an exception when trying to read **docx** files, and I tried **Toxy** Library it though an exception for **doc** arabic files, finally I tried **TikaOnDotNet** Libray but it need java to work and I need to put the system online on hosting that don't have java installed on server

Answer: 
for version 4 of pubnub the instantiation has changed,

```
from pubnub import pubnub
pnconf = pubnub.PNConfiguration()
pnconf.subscribe_key = 'demo'
pnconf.publish_key = 'demo'

pubnub = pubnub.PubNub(pnconf)

```

for more information read their documentation [v4 upgrading for pubnub](https://www.pubnub.com/docs/python/upgrading-v4)
I renamed file, removed python3(it was installed still :D), and removed every \*.pyc files and it is working for now. Thanks