Refactoring: PEP8 for custom exceptions.