Get rid of handle_errors
Use a namedtuple to keep errors in
Style tweaks
pep8
raise InternalError
Merge pull request #707 from public/consume-errors

Get rid of handle_errors