Adapted to Python 3

Adapted exception handling to Python 3.
Temporary file not removed in case of plantuml error so it can be used
to identify problems.
Registered MD plugin after code blocks

Registered MD plugin after parsing of code blocks so the UML code can be
used as source in documents