Added test for Api.__init__

To ensure that we can pass the api key in to the constructor
Added gitignore to skip pyc files