Minor cleanup to error-handling module

This now passes the pylint checker and conforms to Python naming
conventions.