Added api_key support, satisfied some pep8 inconsistencies.

I did not modify your tests to account for the an (in)valid API key, but I figured you all could generate one that would pass or fail appropriately.