Close #19025: Better error message when trying to delete an Enum member.

Also slight code reorg for PEP 8 guidelines.
2 files changed