Used logging moddule, converted classes to new-style