title: NameError: global name 'Pubnub' is not defined
body: <p>Im Deploying an Application Server on Bluemix using cf push, im receiving a error of "NameError: global name 'Pubnub' is not defined" but actually the first error i encountered is  "ERR ImportError: cannot import name Pubnub" then i got a solution looking in other threads where they suggest to change the syntax to "from pubnub.pubnub import PubNub" because i have PubNub v4 installed. Any Idea how to solve this. thanks. below is my code where the error is coming</p>
  
  <pre><code>def init():
      #Pubnub Initialization
      global pubnub 
      pubnub = Pubnub(publish_key=PUB_KEY,subscribe_key=SUB_KEY)
      pubnub.subscribe(channels='kitchenDevice-resp', callback=callback, error=callback, reconnect=reconnect, disconnect=disconnect)
      pubnub.subscribe(channels='kitchenApp-req', callback=appcallback, error=appcallback, reconnect=reconnect, disconnect=disconnect)
  </code></pre>