Change syntax for exceptions

I started to analyse the code with pylint and I'm implementing most of
the successions one type at a time
Add some whitespace here and there

added whitespace around operators and after a comma
Remove trailing whitespace
Change naming-schemes from mixedCase to new_scheme

Some variables/abbreviations are still not in this scheme like BR
Rename some more variables to new_pattern