Wilson's spanning tree algorithm in Python