[scikit-image] Contour division and simplification using graph.shortest_path?