Pep8 cleanup
Added api logger