Fixed compatability issues: set literals don't exist in py26 and __builtin__ doesn't exist in py3.