Fixed exception names for PEP8