Python Set Intersection Function Python Format String