Remove assumption about set ordering

Python >= 3.3