add logger
autopep8 fix