Issue #34 actual workaround keeping the globals

Removed early call to API, settings now loaded only when API ready. Still a lot of globals. Will perhaps continue this fork to get rid of them. Tested and confirmed to work on OS X 10.9 with Homebrew python 3 and 2.7 for external Pylint.

I also ran Pylint on the file and changed a few things. Not all of the things though.