Fixed treatment of PE attributes.

ParsingException attributes were being handled with a set of functions,
but it is actually much cleaner to make them kwargs to the constructor.
Fixed initialization of parser exceptions.