Adding logging and reorganizing imports
Adding a blank line for PEP8 compliance