Python disjoint sets implementation

Written in python for easy accessors and the lack of a need for a special node class.