The diagnostic package makes it easier to build command line tools with great error reporting.
python-diagnostic-3.0.0-1.fc44.src.rpm
For the purpose of submitting this package to Fedora, here is the RPM spec file.