Rewrote errors in Python.