Cleanup and test errors.py (#68).