Python module, support for repeated arc weights