title: Problems Using CEX API in Python-- Cannot use module.
body: <p>I am currently attempting to use the cex.io Python API for accessing financial data. Here is a link to github with the library: <a href="https://github.com/matveyco/cex.io-api-python" rel="nofollow">https://github.com/matveyco/cex.io-api-python</a></p>
  
  <p>I installed it on MacOS X by using "python setup.py install" in Terminal. In the link above, it says to initialize the class we should use the following:</p>
  
  <pre><code>    import cexapi
      api = cexapi.api(username, api_key, api_secret)
  </code></pre>
  
  <p>However, when I put this code in a .py file in a directory without any other files, bash responds with:</p>
  
  <pre><code>    AttributeError: 'module' object has no attribute 'api'
  </code></pre>
  
  <p>I am pretty sure the library is correctly installed (Python has no problem importing cexapi). It is clear to me that there is something about Python objects that I don't understand or I must have incorrectly installed the module. </p>
  
  <p>Just in case it helps, I ran the following in the Python interpreter:</p>
  
  <pre><code>    import cexapi
      cexapi.__file__
  </code></pre>
  
  <p>And got the following:</p>
  
  <pre><code>    '/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/cexapi-0.1-py3.4.egg/cexapi/__init__.py'
  </code></pre>
  
  <p>This command should show where the module is stored. Any help would be greatly appreciated, as I need to use this API. Thanks.</p>