Python Set Membership Time Complexity