Fix python test -- Related to #2490
Merge branch 'michel_2490_python_test' into next