Pep8 cleanup
Added api logger
Merge pull request #1 from DXist/master

Enabled exception logging