Python Set Union Time Complexity