title: pycharm cannot find reference 'layer' in '__init__.py' for cocos2d
body: <p>I am just starting out to learn <code>cocos2d</code> using python.</p>
  
  <p>When I write this in pycharm :</p>
  
  <pre><code>import cocos
  
  class HelloWorld(cocos.layer.Layer):
  def __init__(self):
      super(HelloWorld, self).__init__()
      label = cocos.text.Label('Hello, World!',
                               font_name = 'Times New Roman',
                               font_size = 32,
                               anchor_x='center', anchor_y='center')
      label.position = 320, 240
      self.add(label)
  cocos.director.director.init()
  hello_layer = HelloWorld()
  main_scene = cocos.scene.Scene(hello_layer)
  cocos.director.director.run(main_scene)
  </code></pre>
  
  <p>Pycharm shows the error <code>cannot find reference 'layer' in '__init__.py'</code> but when I run it, the code works. The code works even when run from inside pycharm (not via terminal), although I don't find it surprising, but thought maybe it requires mentioning.
  It also doesn't gives any auto-suggestions and/or auto-completes anything related to <code>cocos2d</code>.</p>
  
  <p>Any idea on how to fix this ?</p>
  
  <p>I am using python 3.4.</p>