error in logging call, fixed pep newlines