minimum spanning tree (MST) in Python [with SciPy package]