pep 8 + fix wrong logger reference