We have copied nearly all of the functions inside this file directly in various files inside pyston.
It would be nice to clean up this mess by removing this implementations and instead directly using the from_cpython/Python/errors.c file (does not exist yet must be copied from cpython 2.7.7).
But some caution must be taken because some functions (may) have small modifications which must be preserved if they are necessary.