Adapt to changes in exception Python wrappers (DM-827)
Merge branch 'u/jbosch/DM-827'
tests: seed random number generator to make tests deterministic