mp_type_NameError_base_tuple and mp_type_OSError_base_tuple are defined (lines 176 and 179) and never used, as the following exceptions are commented out.
I could comment them, but was not sure if they were not used in other ports.