Using logging module from the standard library
Bug fixes to pass syntax and module loading checks