[python] Make work with changes from dune-common MR 1054

5 jobs for !2937 with feature/python-with-dune-2.9
latest merge request