Move configuration of Python test controllers into setup()

This should fix the test problems with the `--coverage` option, e.g. on Shiningpanda.