added intersect and difference functions using the python set API