[weight] in second per meter

In the graph, we multiply this weight by the distance,
which give use a time in second to cross each vertex.

Breaks frontier_exploration @cyrobin
[python] fix gladysplay switch region/weight background