Refactored other hard to understand spots and "except *, *:" was replaced by "except * as *:" for better future-support of python 3.X implementation (although that is not part of DiWa goals, it is still a good practice to support those who might try migrating this to Python 3.X versions).