I think this fixes the problems introduced with the changes to dune_python_add_test.
dune_python_add_test