Python Print Exception Class Hierarchy