Fix summary messages, PEP8 compliant
Fix custom exception class