Some pep8 cleanups
Cleanups from review:

* Put Api.initialize into the main module initialize
* Don't cache the return of _getcf()
* Remove crufty get_by_id method