Make errors simpler in Python 3.