Update logging and use logging.ini
pep8 fixes