I ran across a nice python package recently. Pretty_Errors formats python exception messages so that they are more legible. Installing it universally also enables the package to make syntax errors more legible. This is one of those packages that I wish I had years ago and I will automatically install for every project going forward.
$ python -m pip install pretty_errors $ python -m pretty_errors
Running these commands will install the package and then add it to your python startup procedure. If it is not setup universally then it must be imported into each project
import pretty_errors. I prefer the universal method.