Switched to use XBMC log command and PEP8'ified the code in prep a little more refactoring.