Fixed logging (misremembered the ordering of log levels)
Pep8 minus E501 and E128