PEP 8 formatting.
Remove unused import.
Modified logging functions to use str.format over string concatenation.
Prefer print function over print statement.
Cleaned up code formatting.
Optimizing imports.