What I have so far is largely based off page 571 of \"Introduction To Algorithms\" by Cormen et al.
I have a Node class in python that represents a set:
Have you looked at any other existing implementations?