corrections to exceptions
corrected the SyntaxError Exception
corrected TypeError Exception
made NameError corrections
added AttributeError to final corrections